45 lines
1.1 KiB
C
45 lines
1.1 KiB
C
//Channel array value positions
|
|
#define _EN 0
|
|
#define _MIN 1
|
|
#define _MAX 2
|
|
#define _TYPE 3
|
|
#define _VAL 4
|
|
#define _PIN 5
|
|
#define _PIN2 6
|
|
#define _VAL2 7 //Alt value for IN_MULTI
|
|
#define _VAL3 8 //Alt value for IN_MULTI
|
|
|
|
//Channel type defines
|
|
#define IN_POT 0 //Potentiometer type
|
|
#define IN_BIN 1 //Binary type
|
|
#define IN_MULTI 3 //Multiple position switch
|
|
#define IN_CTR_POT 4 //Potentiometer with center position
|
|
#define IN_CTR_POT_2 5 //Potentiometer with center that needs second channel
|
|
#define IN_BIN_SOFT 6 //Binary input for software usage
|
|
|
|
|
|
//NRF Pins
|
|
#define CE_PIN 49//9 //node 2
|
|
#define CSN_PIN 48//53 //node 4
|
|
|
|
//Device Addresses
|
|
uint8_t address[][6]= { "RXDev", "TXDev"};
|
|
|
|
//Radio power level
|
|
#define RADIO_PA_LEVEL 1
|
|
|
|
//Number of channels
|
|
#define NUM_CHANNELS 10
|
|
|
|
//Tweak values
|
|
#define STICK_CENTER 128
|
|
#define STICK_DEADZONE 20 //Value in each direction
|
|
#define BIN_TRIP_VALUE 128 //Value above which binary output will be triggered
|
|
|
|
#define WATCHDOG_TIME 3000 //Watchdog interval in milliseconds
|
|
|
|
//Output Pins
|
|
unsigned char RX_CHANNELS[ NUM_CHANNELS + 1][ 10 ] = {0};
|
|
|
|
|