|
|
|
|
|
|
|
|
// ============ SPEED CONFIGURATION ============ |
|
|
// ============ SPEED CONFIGURATION ============ |
|
|
ScanDelay scanDelay(9000); |
|
|
ScanDelay scanDelay(9000); |
|
|
|
|
|
|
|
|
// ================= LEFT PINS ================= |
|
|
|
|
|
|
|
|
// ==================== IC ===================== |
|
|
// ---------------- LEFT SCANNER --------------- |
|
|
// ---------------- LEFT SCANNER --------------- |
|
|
uint8_t readPins[] = {14, 15}; |
|
|
uint8_t readPins[] = {14, 15}; |
|
|
const uint8_t readPinCount = sizeof(readPins)/sizeof(*readPins); |
|
|
const uint8_t readPinCount = sizeof(readPins)/sizeof(*readPins); |
|
|
|
|
|
|
|
|
// ----------------- LEFT LEDs ----------------- |
|
|
// ----------------- LEFT LEDs ----------------- |
|
|
LED_uC LED_CapsLck(21); |
|
|
LED_uC LED_CapsLck(21); |
|
|
|
|
|
|
|
|
// ================ RIGHT PINS ================= |
|
|
|
|
|
// --------------- RIGHT SCANNER --------------- |
|
|
// --------------- RIGHT SCANNER --------------- |
|
|
const uint8_t IOE_ADDR = 0x20; //MCP23S17 address, all 3 ADDR pins are grounded |
|
|
const uint8_t IOE_ADDR = 0x20; //MCP23S17 address, all 3 ADDR pins are grounded |
|
|
PortMCP23S17 portA(IOE_ADDR, 0, 1<<0 | 1<<1 ); //for read and LED |
|
|
PortMCP23S17 portA(IOE_ADDR, 0, 1<<0 | 1<<1 ); //for read and LED |