Nucleo F042K6 PWM, LCD and DS1820 not working correctly. PWM conflicts with DS1820 timings.
Dependencies: mbed TextLCD DS1820
main.cpp@6:4e6ec83d3c83, 2017-09-13 (annotated)
- Committer:
- bcostm
- Date:
- Wed Sep 13 11:30:50 2017 +0000
- Revision:
- 6:4e6ec83d3c83
- Parent:
- 2:b60cb847489c
Update mbed lib to rev 150
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
screamer | 0:005629fe3609 | 1 | #include "mbed.h" |
screamer | 0:005629fe3609 | 2 | |
screamer | 0:005629fe3609 | 3 | DigitalOut myled(LED1); |
screamer | 0:005629fe3609 | 4 | |
screamer | 0:005629fe3609 | 5 | int main() { |
screamer | 0:005629fe3609 | 6 | while(1) { |
bcostm | 2:b60cb847489c | 7 | myled = 1; // LED is ON |
bcostm | 2:b60cb847489c | 8 | wait(0.2); // 200 ms |
bcostm | 2:b60cb847489c | 9 | myled = 0; // LED is OFF |
bcostm | 2:b60cb847489c | 10 | wait(1.0); // 1 sec |
screamer | 0:005629fe3609 | 11 | } |
screamer | 0:005629fe3609 | 12 | } |