![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
NUCLEO-F042K6 Simple demo with ADC use
Dependencies: mbed
Revision 1:f152bb2a4718, committed 2018-02-11
- Comitter:
- vodsejak
- Date:
- Sun Feb 11 18:09:41 2018 +0000
- Parent:
- 0:d52d3729f434
- Commit message:
- v1.1; commentary
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sun Feb 11 18:03:59 2018 +0000 +++ b/main.cpp Sun Feb 11 18:09:41 2018 +0000 @@ -17,6 +17,7 @@ { int DC = 0; + // set PWM PWM.period_ms(2); // 500 Hz PWM.pulsewidth_us(DC); // duration of active pulse