AnalogIn program for mbed NXP LPC11U24

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 
00003 BusOut leds(LED1,LED2,LED3,LED4);
00004 AnalogIn ain(p20);
00005 
00006 int main () {
00007     while (1) {
00008         leds = 0xF * ain.read();
00009     }
00010 }