The very basics of DigitalIn
I wanted to play with the Light Dependent Resistor that came with my mbed LPC1768 Starter Kit - B from SKPang.
I made a LED come on if pin5 is on. Having checked it with a straight through connection from pin2 I then put the LDR from pin2 to pin5. Cover the LDR and the LED goes out!
http://mbed.org/users/simno/programs/LED1OnIfP5On/latest
0 comments
You need to log in to post a comment