akuygry
Dependencies: mbed Servo KeypadLib TextLCD
Diff: main.cpp
- Revision:
- 1:02c938489de7
- Parent:
- 0:5f8790dfc90c
diff -r 5f8790dfc90c -r 02c938489de7 main.cpp --- a/main.cpp Tue Dec 04 10:11:08 2018 +0000 +++ b/main.cpp Tue Dec 04 11:50:39 2018 +0000 @@ -1,5 +1,5 @@ #include "Cassaforte.h" -//#include "mbed.h" +#include "mbed.h" //#include <TextLCD.h> //I2C i2c(D14, D15); //TextLCD_I2C lcd(&i2c, 0x4E, TextLCD_I2C::LCD16x2, TextLCD_I2C::HD44780); @@ -8,16 +8,14 @@ void cambioCodice(); void inserisci();*/ InterruptIn button(PC_13); - +char v[4]; int main() { /*lcd.setMode(TextLCD_I2C::DispOn); lcd.setCursor(TextLCD_I2C::CurOn_BlkOn);*/ inizializza(); - button.rise(&cambioCodice); - while(1) { - scrivi("Cassaforte"); - wait(0.2); - } + scrivi("Immetti codice:"); + inserimento(v,4); + } /*void scrivi(char parola[]){