
Potentiometers experiment
Revision 2:0df5683f5842, committed 2019-05-02
- Comitter:
- AdamCiechalski
- Date:
- Thu May 02 10:41:59 2019 +0000
- Parent:
- 1:9444965b4725
- Commit message:
- Inst_LAB3;
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 9444965b4725 -r 0df5683f5842 main.cpp --- a/main.cpp Wed May 01 11:16:30 2019 +0000 +++ b/main.cpp Thu May 02 10:41:59 2019 +0000 @@ -13,7 +13,7 @@ lcd.locate(0,0);//position the cursor in position 0.0 - upper left corner of the display lcd.printf("value of pot1 is %.3f\n", pot1.read());//display of the potentiometer value in the range 0-1 lcd.locate(0,10); //position the cursor in position 0.10 - first column tenth row - lcd.printf("voltage of pot1 is %.2fV\n", pot1.read() * 3.3); //display of the voltage value on the potentiometer in the range of 0 - 3.3V + lcd.printf("voltage of pot1 is %.2fV\n", pot1.read() * 3.3); //display of the voltage value of the potentiometer in the range of 0 - 3.3V wait(0.05); } }