test
Dependencies: MINI8I8O5A000 mbed EEPROM_P4 IICLCD_LOWCOST
Diff: main.cpp
- Revision:
- 12:d97af85a47f9
- Parent:
- 11:c3151cd10c88
--- a/main.cpp Wed Sep 27 09:01:30 2017 +0000 +++ b/main.cpp Tue Sep 01 09:14:52 2020 +0000 @@ -1,7 +1,12 @@ float firmware_version = 1.20; +//OMRON +//#define TRIGGER_0 1 +//#define TRIGGER_1 0 -#define TRIGGER_0 1 -#define TRIGGER_1 0 +//KEYENCE +#define TRIGGER_0 0 +#define TRIGGER_1 1 + #include "mbed.h" @@ -23,6 +28,8 @@ //Serial pc(USBTX, USBRX); // SDA serail port Serial pc(PTE0, PTE1); // tx, rx + + #endif @@ -209,7 +216,7 @@ case '3': PRGLINE3=PRG_OFF;PRGLINE2=PRG_OFF; PRGLINE1=PRG_ON ; PRGLINE0=PRG_ON ; break; case '4': PRGLINE3=PRG_OFF;PRGLINE2=PRG_ON ; PRGLINE1=PRG_OFF; PRGLINE0=PRG_OFF; break; case '5': PRGLINE3=PRG_OFF;PRGLINE2=PRG_ON ; PRGLINE1=PRG_OFF; PRGLINE0=PRG_ON; break; - case '6': PRGLINE3=PRG_OFF;PRGLINE2=PRG_ON ; PRGLINE1=PRG_OFF; PRGLINE0=PRG_ON ; break; + case '6': PRGLINE3=PRG_OFF;PRGLINE2=PRG_ON ; PRGLINE1=PRG_ON; PRGLINE0=PRG_OFF ; break; case '7': PRGLINE3=PRG_OFF;PRGLINE2=PRG_ON ; PRGLINE1=PRG_ON ; PRGLINE0=PRG_ON ; break; case '8': PRGLINE3=PRG_ON ;PRGLINE2=PRG_OFF; PRGLINE1=PRG_OFF; PRGLINE0=PRG_OFF; break; case '9': PRGLINE3=PRG_ON ;PRGLINE2=PRG_OFF; PRGLINE1=PRG_OFF; PRGLINE0=PRG_ON ; break;