#define module_num 5 // (between 1 - 50) // sets color channel these varaible need to be changed for each module RF24 radio(9,10) // NRF24L01 used SPI pins + Pin 9 and 10 on the UNO #define PIN 3 // Digital In (DI) of RGB Stick connected to pin 8 of the UNOĪdafruit_NeoPixel strip = Adafruit_NeoPixel(NUM_LEDS, PIN, NEO_GRBW + NEO_KHZ800) #define NUM_LEDS 1 // Number of leds on stick Radio.write(&data, sizeof(Data_Package)) SPI.beginTransaction(SPISettings(10000000, MSBFIRST, SPI_MODE0)) put your main code here, to run repeatedly: Tft.PWM1config(true, RA8875_PWM_CLK_DIV1024) // PWM output for backlight Tft.GPIOX(true) // Enable TFT - display enable tied to GPIOX Radio.openWritingPipe(pipe) // Get NRF24L01 ready to transmit Strip.show() // Initialize all pixels to 'off' Unsigned long lastUpdate = 0 // for millis() when last update occoured Unsigned long patternInterval2 = 75 // time between steps in the pattern Unsigned long patternInterval1 = 50 // time between steps in the pattern ///// data to be changed for sending and receiving RF24 radio(24,22) // ce, cs // NRF24L01 used SPI pins + Pin 9 and 10 on the NANOĬonst byte pipe = "000001" // Needs to be the same for communicating between 2 NRF24L01 RF24 radio(24,22) // ce, cs // NRF24L01 used SPI pins + Pin 9 and 10 on the NANOĪdafruit_NeoPixel strip = Adafruit_NeoPixel(num_modules, 5, NEO_GRBW + NEO_KHZ800) #include "nRF24L01.h" //NRF24L01 library created by TMRh20 I've tried changing the speeds within each library and haven't seen any change in behavior.Īny thoughts suggestions / parts to try would be greatly appreciated. While i can get the nRF24 to work of SOFTSPI, the moment I uncomment #include "Adafruit_RA8875.h" the wireless stops responding. While I didn't find a definitive answer to that when doing research I decided to try controlling the nRF24 directly with the mega using software SPI on the nRF24 to narrow down the issue. But likely something the MEGA could multitask. and a nano in the same configuration with the same result.Īfter some research I was starting to wonder if using SPI and UARt was a limitation for the nano / pro mini. I tried this on another nano without the external antenna version of the nRF24. But the moment I enabled the serial.begin(9600) radio communication would stop. I've been able to build my UI with no issues (minus lack of font to be honest - another issue for another day)īecause I know this display has issues being in a tri - state i was going to use a pro - mini to handle all the wireless communication. I was trying to use an arduino Mega to interface with a 7" RA8875 display from adafruit. My current problems with the project are programming related so I thought I'd make a post here (sorry if this is an incorrect forum etticitte) I'm currently working on a project: ( Project Guidance Forum Post)
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |