Jan Kornberger
/
mbed_blinky_06
s
Revision 0:a3cd7b0ad851, committed 2015-12-17
- Comitter:
- jan_kornberger
- Date:
- Thu Dec 17 15:51:47 2015 +0000
- Commit message:
- l
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r a3cd7b0ad851 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Dec 17 15:51:47 2015 +0000 @@ -0,0 +1,16 @@ +#include "mbed.h" +PwmOut g(p5); +PwmOut b(p34); +PwmOut r(p36); +AnalogIn poti(p15); + + +int main() { + r.period(0.001); + while(1) { + g=poti.read(); + b=1; + r=1; + wait (0.01); + } +}
diff -r 000000000000 -r a3cd7b0ad851 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Dec 17 15:51:47 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/4336505e4b1c \ No newline at end of file