From 117e4fd90bb255e1e2ce0838407459df8395aa00 Mon Sep 17 00:00:00 2001 From: Alexander Richter Date: Wed, 13 Sep 2023 18:14:14 +0200 Subject: [PATCH] changed for panming's Keyboard --- LinuxCNC_ArduinoConnector.ino | 8 ++++---- arduino-connector.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/LinuxCNC_ArduinoConnector.ino b/LinuxCNC_ArduinoConnector.ino index 930c9f1..8c65745 100644 --- a/LinuxCNC_ArduinoConnector.ino +++ b/LinuxCNC_ArduinoConnector.ino @@ -281,10 +281,10 @@ int lastKey= -1; #ifdef MULTIPLEXLEDS -const int numVccPins = 4; // Number of rows in the matrix -const int numGndPins = 4; // Number of columns in the matrix -const int LedVccPins[] = {6, 3, 4, 5}; // Arduino pins connected to rows -const int LedGndPins[] = {2, 7, 8, 9}; // Arduino pins connected to columns +const int numVccPins = 8; // Number of rows in the matrix +const int numGndPins = 7; // Number of columns in the matrix +const int LedVccPins[] = {0,1,2,3,4,5,6,7}; // Arduino pins connected to rows +const int LedGndPins[] = {8,9,10,11,12,13,14}; // Arduino pins connected to columns // Define the LED matrix int ledStates[numVccPins*numGndPins] = {0}; diff --git a/arduino-connector.py b/arduino-connector.py index 6542f5e..4995cbf 100644 --- a/arduino-connector.py +++ b/arduino-connector.py @@ -169,8 +169,8 @@ Destination = [ #define, which Key should be inserted in LinuxCNC as Input or MultiplexLED = 1 # Set to 1 to Activate -LedVccPins = 4 -LedGndPins = 4 +LedVccPins = 8 +LedGndPins = 7