Mirza Mesic
/
tinf_PWM1
RGB Leds
Revision 0:6cf7bc2bed0c, committed 2019-12-09
- Comitter:
- mirzamesic
- Date:
- Mon Dec 09 18:26:40 2019 +0000
- Commit message:
- ver1
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 6cf7bc2bed0c main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Dec 09 18:26:40 2019 +0000 @@ -0,0 +1,21 @@ +#include "mbed.h" + +PwmOut red(p23); +PwmOut green(p24); +PwmOut blue(p25); + + + + +int main() +{ + + red.period_ms(500); + red.pulsewidth_ms(100); + blue.period_ms(500); + blue.pulsewidth_ms(300); + green=1; + while(1) + { + } +} \ No newline at end of file
diff -r 000000000000 -r 6cf7bc2bed0c mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Dec 09 18:26:40 2019 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file