Open RoboDurden opened 7 months ago
LED_BUILTIN is about my autodetect ?
I think it is still there: case 'p': iFound = SCAN_ONBOARD_LED; break;
It is still from the old Gen2.0 that in defines.h this led is called
// Mosfet output, little onboard led
#define MOSFET_OUT TODO_PIN // robo might be the blue led inside the hover motors
And it is still in use:
#ifdef MOSFET_OUT
digitalWrite(MOSFET_OUT, (steerCounter%200) < 100 ); // onboard led blinking :-)
#endif
I have not added control onBoardLed from ESP32:
uint8_t wState = 1; // 1=ledGreen, 2=ledOrange, 4=ledRed, 8=ledUp, 16=ledDown , 32=Battery3Led, 64=Disable, 128=ShutOff
Idea was that the onboard led is only to reflect if the system is working correctly. Maybe blinking error codes.
My 30 minutes "full walkthrough" is online: https://youtu.be/wUR05iwLMtM
I first intented to remove everything about my newSlaveId because i by now also think that it is better to run pinFinder for every new board installed. But it was the only refence to setting a config only for one slave like 1 si 2
, so i did not cut it.
And the topic might generate a few comments, which is good to promote your work.
Took me several hours to do this video, i would have prefered if you had done it. But i am happy to help :-)
@RoboDurden i mean the code for esp
i need to add #define LED_BUILTIN 22
Ah that .. some boards have this defined by default, some dev boards not and it needs manual adding like with the board that you use.
@AILIFE4798 , i have begun to implement the
SerialServer2HoverConfig
struct you already imported with remoteUartBus.cMaybe you want to add a slaveId-reset when the user pushes the onOff button 7 times within in the first 7 seconds to reset the slaveId to 1.. Then no Keil woud be needed to program the singe boards..
I would like this feature for the youtube tutorial to switch the different drive modes from the TestSpeed.ino. So without recompling the main binary.
Update: the 7 button pushes to reset are not really needed. User can send new slave id to all possible 64 ids and all boards connected to the uartbus will reset to the new slaveID.