made setttings standart Disabled

This commit is contained in:
Alexander Richter 2023-03-29 14:17:52 +02:00
parent 3fb3aa0cdf
commit a1875bfd15
2 changed files with 18 additions and 14 deletions

View File

@ -70,13 +70,13 @@
int OutPinmap[] = {10,9,8,7,6,5,4,3,2,21}; int OutPinmap[] = {10,9,8,7,6,5,4,3,2,21};
#endif #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 #ifdef PWMOUTPUTS
const int PwmOutputs = 2; //number of outputs const int PwmOutputs = 2; //number of outputs
int PwmOutPinmap[] = {12,11}; int PwmOutPinmap[] = {12,11};
#endif #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. //Note that Analog Pin numbering is different to the Print on the PCB.
#ifdef AINPUTS #ifdef AINPUTS
const int AInputs = 1; 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 int margin = 20; //giving it some margin so Numbers dont jitter, make this number smaller if your knob has more than 50 Positions
#endif #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 #ifdef ABSENCODER
const int AbsEncPins[] = {27,28,31,29,30}; //1,2,4,8,16 const int AbsEncPins[] = {27,28,31,29,30}; //1,2,4,8,16
#endif #endif
@ -158,8 +158,8 @@
const int DLEDBrightness = 70; //Brightness of the LED's 0-100% const int DLEDBrightness = 70; //Brightness of the LED's 0-100%
int DledOnColors[DLEDcount][3] = { int DledOnColors[DLEDcount][3] = {
{0,0,255},
{255,0,0}, {255,0,0},
{0,255,255},
{0,255,0}, {0,255,0},
{0,255,0}, {0,255,0},
{0,255,0}, {0,255,0},
@ -170,7 +170,7 @@
int DledOffColors[DLEDcount][3] = { int DledOffColors[DLEDcount][3] = {
{0,0,0}, {0,0,0},
{0,255,0}, {0,0,0},
{255,0,0}, {255,0,0},
{255,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 #endif
//####################################### END OF CONFIG ###########################
//#define DEBUG //#define DEBUG

View File

@ -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: Currently the Software Supports:
- analog Inputs - Analog Inputs
- digital Inputs - Digital Inputs
- digital Outputs - Digital Outputs
- support of Digital RGB LEDs like WS2812 or PL9823 - PWM Outputs
- latching Potentiometers - Digital RGB LEDs like WS2812 or PL9823
- 1 absolute encoder input - latching Potentiometers / Selector Switches
- 1 absolute encoder Selector Switch
TODO TODO
-[ ] Matrix Keyboard Support - Matrix Keyboard Support
Should i add this? Should this be supported?
-[ ] RC Servo Support - RC Servo Support
# Compatiblity # Compatiblity
This software works with LinuxCNC 2.8, 2.9 and 2.10. This software works with LinuxCNC 2.8, 2.9 and 2.10.