Projet ER4 - Groupe AS - IUT Tarbes
/
testPourMikel
dfgdfgdfg
Fork of app-shield-LCD by
main.cpp
- Committer:
- AS_ER4
- Date:
- 2017-01-30
- Revision:
- 7:9bf99b580671
- Parent:
- 6:d90b6de72b40
- Child:
- 8:b7c87fd00982
File content as of revision 7:9bf99b580671:
#include "mbed.h" #include "C12832.h" // Using Arduino pin notation C12832 lcd(D11, D13, D12, D7, D10); void printStringScreen(char x, char y, char* toto); AnalogIn pot1 (A0); AnalogIn pot2 (A1); float pot1F = (float)pot1*10; int main() { int j=0; while(1) { lcd.pixel(10,10,1); //lcd.set_contrast(0); printStringScreen(0,0,"ceci est un test"); printStringScreen(5,5,pot1); } } void printStringScreen(char x, char y, char* toto){ lcd.locate(x,y); lcd.printf(toto); }