Mirza Mesic
/
tinf_PWM1
RGB Leds
main.cpp
- Committer:
- mirzamesic
- Date:
- 2019-12-09
- Revision:
- 0:6cf7bc2bed0c
File content as of revision 0:6cf7bc2bed0c:
#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) { } }