Test program for mbed app shield potentiometers
Fork of apps-shield-pots by
main.cpp
- Committer:
- sarahmarshy
- Date:
- 2017-09-19
- Revision:
- 5:a89ad54e5ac7
- Parent:
- 4:f0eb984c583d
File content as of revision 5:a89ad54e5ac7:
#include "mbed.h" #include "C12832.h" C12832 lcd(D11, D13, D12, D7, D10); AnalogIn pot1 (A0); AnalogIn pot2 (A1); int main() { while(1) { lcd.cls(); lcd.locate(0,3); lcd.printf("Pot 1 = %.2f", (float)pot1); lcd.locate(0,14); lcd.printf("Pot 2 = %.2f", (float)pot2); wait(0.1); } }