Projet ER4 - Groupe AS - IUT Tarbes
/
testPourMikel
dfgdfgdfg
Fork of app-shield-LCD by
Diff: main.cpp
- Revision:
- 6:d90b6de72b40
- Parent:
- 4:39c7c31b8fb0
- Child:
- 7:9bf99b580671
--- a/main.cpp Fri Aug 01 14:30:24 2014 +0000 +++ b/main.cpp Fri Jan 20 14:25:54 2017 +0000 @@ -3,18 +3,26 @@ // 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; - lcd.cls(); - lcd.locate(0,3); - lcd.printf("mbed application shield!"); + while(1) { + lcd.pixel(10,10,12); + } +} - while(true) { // this is the third thread - lcd.locate(0,15); - lcd.printf("Counting : %d",j); - j++; - wait(1.0); +void printStringScreen(char x, char y, char* toto){ + + lcd.locate(x,y); + lcd.printf(toto); + } -} + +