s

Dependencies:   mbed

Fork of mbed_blinky_06 by Jan Kornberger

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 PwmOut g(p5);
00003 PwmOut b(p34);
00004 PwmOut r(p36);
00005 AnalogIn poti(p15);
00006 
00007 
00008 int main() {
00009     r.period(0.001);
00010     while(1) {
00011         g=poti.read();
00012         b=1;
00013         r=1;
00014         wait (0.01);
00015     }
00016 }