Brightness controlled by a potmeter. this is a test program which uses the biorobotics shield

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 
00003 PwmOut led(D3);
00004 AnalogIn pot(A1);
00005 
00006 int main()
00007 {
00008     while (true) {
00009         led = pot;
00010         wait(0.1f);
00011     }
00012 }