change pinout for DMX lib

master
adb 4 years ago
parent a3b635aade
commit 918ea0e526

@ -18,13 +18,13 @@ uint8_t mac[] = {0xAA, 0xDD, 0xBB, 0xAA, 0xDD, 0xBB};
#include <RF24.h>
#include <nRF24L01.h>
RF24 radio (0, 1);
RF24 radio (4, 5);
const uint16_t address = 0xADB0;
uint64_t datasend;
//RGB LED
const int statusLED[] = {23,22, 21}; //RGB
const int statusLED[] = {29,28, 27}; //RGB
const int statusLEDlength = 3;
int statusLEDstat[3];
@ -56,8 +56,8 @@ void setup() {
//start NRF
radio.begin();
radio.openWritingPipe(address);
radio.setPALevel(RF24_PA_LOW);
radio.setDataRate(RF24_1MBPS);
radio.setPALevel(RF24_PA_HIGH);
radio.setDataRate(RF24_2MBPS);
//radio.disableDynamicPayloads();
radio.setAutoAck(false);
radio.disableCRC();
@ -93,7 +93,7 @@ void callback(byte* artnetdata, uint16_t size) {
DMX.endTransmission();
//send NRF
for (int i = 0; i < 20; i++) {
for (int i = 0; i < 40; i++) {
datasend = i; //package ID
for (int j = 0; j < 7; j++) {

Loading…
Cancel
Save