NUCLEO-F042K6 Simple demo with ADC use

Dependencies:   mbed

Files at this revision

API Documentation at this revision

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