Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed Servo KeypadLib TextLCD
Diff: main.cpp
- Revision:
- 2:ca52e00afb99
- Parent:
- 1:0661b733846e
- Child:
- 3:3ea339885ed8
--- a/main.cpp Sun Dec 09 22:01:57 2018 +0000
+++ b/main.cpp Mon Dec 10 19:50:47 2018 +0000
@@ -1,6 +1,7 @@
/* *PINOUT E CABLAGGIO
*5V ---> VCC MODULO I2C DISPLAY;
- *GND ---> VCC MODULO I2C DISPLAY, CATODI LED, BUZZER-PIEZO;
+ *3.3v ----> RESISTENZA (10k) INTERRUTOTTORE MAGNETICO;
+ *GND ---> VCC MODULO I2C DISPLAY, CATODI LED, BUZZER-PIEZO, INTERRUTTORE MAGNETICO, RESISTENZE LED (220Ω);
*PIN D15 ---> SCL MODULO I2C DISPLAY;
*PIN D14 ---> SDA MODULO I2C DISPLAY;
*PIN D13 ---> LED VERDE;
@@ -16,7 +17,6 @@
*PIN D3 ---> PIN 8 TASTIERINO;
*PIN D2 ---> BUZZER-PIEZO;
*PIN PC_10 ---> INTERRUTTORE MAGNETICO;
-
*/
#include "Cassaforte.h"
@@ -28,7 +28,7 @@
void scrivi(char parola[]);
void cambioCodice();
void inserisci();*/
-InterruptIn alarm(PC_13);
+InterruptIn alarm(PC_10);
bool avvio = true;
char v[4];
int cont2;