
Simple project using serial communication and rotary encoder to control PWM signal for LED lights dimming
Dependencies: mbed Room mbed-rtos Host Bluetooth Rotaty_Encoder
PWM LED LIGHT CONTROL
main.cpp@0:fb549236876f, 2021-09-21 (annotated)
- Committer:
- nzupcic
- Date:
- Tue Sep 21 16:51:35 2021 +0000
- Revision:
- 0:fb549236876f
Simple project with PWM LED light control using rotary encoder and Serial communication
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
nzupcic | 0:fb549236876f | 1 | #include "mbed.h" |
nzupcic | 0:fb549236876f | 2 | #include "Room.h" |
nzupcic | 0:fb549236876f | 3 | |
nzupcic | 0:fb549236876f | 4 | Room livingRoom(LED2, p11, p12, p13, p9, p10, USBTX, USBRX); |
nzupcic | 0:fb549236876f | 5 | |
nzupcic | 0:fb549236876f | 6 | int main() { |
nzupcic | 0:fb549236876f | 7 | while(1){ |
nzupcic | 0:fb549236876f | 8 | //do something |
nzupcic | 0:fb549236876f | 9 | } |
nzupcic | 0:fb549236876f | 10 | } |