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

Loading…
Cancel
Save