From a1875bfd153895f310e3228eb785ffa86c3a2071 Mon Sep 17 00:00:00 2001 From: Alexander Richter Date: Wed, 29 Mar 2023 14:17:52 +0200 Subject: [PATCH] made setttings standart Disabled --- LinuxCNC_ArduinoConnector.ino | 13 ++++++++----- README.md | 19 ++++++++++--------- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/LinuxCNC_ArduinoConnector.ino b/LinuxCNC_ArduinoConnector.ino index f897afe..b1d0df6 100644 --- a/LinuxCNC_ArduinoConnector.ino +++ b/LinuxCNC_ArduinoConnector.ino @@ -70,13 +70,13 @@ int OutPinmap[] = {10,9,8,7,6,5,4,3,2,21}; #endif -#define PWMOUTPUTS //Use Arduino PWM Capable IO's as PWM Outputs. Define how many PWM Outputs you want in total and then which Pins you want to be PWM Outputs. +//#define PWMOUTPUTS //Use Arduino PWM Capable IO's as PWM Outputs. Define how many PWM Outputs you want in total and then which Pins you want to be PWM Outputs. #ifdef PWMOUTPUTS const int PwmOutputs = 2; //number of outputs int PwmOutPinmap[] = {12,11}; #endif -#define AINPUTS //Use Arduino ADC's as Analog Inputs. Define how many Analog Inputs you want in total and then which Pins you want to be Analog Inputs. +//#define AINPUTS //Use Arduino ADC's as Analog Inputs. Define how many Analog Inputs you want in total and then which Pins you want to be Analog Inputs. //Note that Analog Pin numbering is different to the Print on the PCB. #ifdef AINPUTS const int AInputs = 1; @@ -109,7 +109,7 @@ int margin = 20; //giving it some margin so Numbers dont jitter, make this number smaller if your knob has more than 50 Positions #endif -#define ABSENCODER //Support of an Rotating Knob that was build in my Machine. It encodes 32 Positions with 5 Pins in Binary. This will generate 32 Pins in LinuxCNC Hal. +//#define ABSENCODER //Support of an Rotating Knob that was build in my Machine. It encodes 32 Positions with 5 Pins in Binary. This will generate 32 Pins in LinuxCNC Hal. #ifdef ABSENCODER const int AbsEncPins[] = {27,28,31,29,30}; //1,2,4,8,16 #endif @@ -158,8 +158,8 @@ const int DLEDBrightness = 70; //Brightness of the LED's 0-100% int DledOnColors[DLEDcount][3] = { + {0,0,255}, {255,0,0}, - {0,255,255}, {0,255,0}, {0,255,0}, {0,255,0}, @@ -170,7 +170,7 @@ int DledOffColors[DLEDcount][3] = { {0,0,0}, - {0,255,0}, + {0,0,0}, {255,0,0}, {255,0,0}, {255,0,0}, @@ -185,6 +185,9 @@ Adafruit_NeoPixel strip(DLEDcount, DLEDPin, NEO_GRB + NEO_KHZ800);//Color sequen #endif +//####################################### END OF CONFIG ########################### + + //#define DEBUG diff --git a/README.md b/README.md index 60d2e0f..1acaa8a 100644 --- a/README.md +++ b/README.md @@ -19,18 +19,19 @@ This way, you can make them turn on or shut off or have them Change color, from Currently the Software Supports: -- analog Inputs -- digital Inputs -- digital Outputs -- support of Digital RGB LEDs like WS2812 or PL9823 -- latching Potentiometers -- 1 absolute encoder input +- Analog Inputs +- Digital Inputs +- Digital Outputs +- PWM Outputs +- Digital RGB LEDs like WS2812 or PL9823 +- latching Potentiometers / Selector Switches +- 1 absolute encoder Selector Switch TODO --[ ] Matrix Keyboard Support +- Matrix Keyboard Support -Should i add this? --[ ] RC Servo Support +Should this be supported? +- RC Servo Support # Compatiblity This software works with LinuxCNC 2.8, 2.9 and 2.10.