added pit controller firmware, and changed the pit activation to send a command via ESP-Now
This commit is contained in:
@@ -255,6 +255,15 @@ void setup() {
|
||||
return;
|
||||
}
|
||||
|
||||
// Register Pit controller peer
|
||||
memcpy(peerInfo.peer_addr, broadcastAddressPitController, 6);
|
||||
peerInfo.channel = 0;
|
||||
peerInfo.encrypt = false;
|
||||
if (esp_now_add_peer(&peerInfo) != ESP_OK) {
|
||||
Serial.println("Failed to add receiver 3");
|
||||
return;
|
||||
}
|
||||
|
||||
// Initialize both Team button LED states and pit controller state
|
||||
sendToREDTEAMbutton.TEAMLED = false;
|
||||
sendToBLUETEAMbutton.TEAMLED = false;
|
||||
|
||||
Reference in New Issue
Block a user