test
Dependencies: MINI8I8O5A000 mbed EEPROM_P4 IICLCD_LOWCOST
Diff: main.cpp
- Revision:
- 11:c3151cd10c88
- Parent:
- 10:c58ec47d206c
- Child:
- 12:d97af85a47f9
--- a/main.cpp Fri Sep 08 10:42:02 2017 +0000 +++ b/main.cpp Wed Sep 27 09:01:30 2017 +0000 @@ -5,9 +5,11 @@ #include "mbed.h" -#define BUZZVSP7 // Enable P7 for Buzzer.. + #define BUZZVSP7 // Enable P7 for Buzzer.. + + //#include "USBSerial.h" -//SBSerial pc; + @@ -72,6 +74,9 @@ int CAMERROR =0; int CAMTOTAL =0; #define CAMTRIGGER OUT0 + +#define SCENE_PULSE OUT1 + #define CAMBUSY IN1 @@ -144,6 +149,11 @@ //pulse trigger + SCENE_PULSE=0; + wait(0.050); + SCENE_PULSE=1; + wait(0.050); + CAMTRIGGER=TRIGGER_0; //edge trigger @@ -188,7 +198,7 @@ #define PRGLINE1 OUT5 #define PRGLINE2 OUT6 #define PRGLINE3 OUT7 - #define PRG_ON 0 + #define PRG_ON 0 #define PRG_OFF 1 switch( rx_buffer[1]) @@ -374,6 +384,7 @@ pc.attach(&serial_pc_rx_services); // Use interrupt services !! OUT1=0; + SCENE_PULSE=1; #define BUZZER_EN 0