Hello, I'm working on a capture points game project. Im trying to merge code into the game portion that controls the Led status' of 4 modules using nrf24L01+. The 4 modules each run the game on them and are to report to the master the status of each module, whether its blue team red team or neutral . The master will see the status and led's for corresponding status of each module. I've been using the
( "byte address[] [6] = {"00001", "00002", "00003"};//set addresses")
format for one module to communicate to the master, but have also seen:
(const byte numSlaves = 2;
const byte slaveAddress[numSlaves][5] = {
** // each slave needs a different address**
** {'R','x','A','A','A'},**
** {'R','x','A','A','B'}**
I'm wondering how i need to address(addresses) each module and how to transmit/recieve the status change in to the module to the master. I have only been able to change the red led to on but not off when the red button status changes to red, but when i change to neutral or blue, the red led stays on on the master module. P.S. all the local led statuses work on the master and module_A, i'm just having trouble transmitting or receiving the status changes properly. If anyone has some guidance on this, I would appreciate it. I also know that I may have too many button states for the buttons, so need some advice. The game is under the "Flag Tab" Thanks
BattleField_Shaun_Revised_V5.5.ino (5.7 KB)
Master_Button_Setup_1.1.ino (4.9 KB)