Why isn't the LED responding to voice commands in my MicroPython code?
Hey guys still based on my project on developing a home automation voice-controlled system using
MicroPython
and TinyML
on an ESP32
microcontroller to recognize specific voice commands ("turn on" and "turn off") for controlling an LED
, am currently testing the voice command recognition and validating LED control using simulated commands ("on", "off") But am getting no response from LED despite commands being printed correctly. My aim is to ensure the LED responds appropriately to the recognized voice commands, How can I resolve this?
this is my code 👇
Solution:Jump to solution
Hi @Enthernet Code
modify your SPI_PeripheralControl function to use a read-modify-write operation:
```c
void SPI_PeripheralControl(SPI_RegDef_t *pSPIX, uint8_t EnOrDi)...
2 Replies
Solution
Hi @Enthernet Code
modify your SPI_PeripheralControl function to use a read-modify-write operation:
This approach preserves other bits in the CR1 register while modifying only the SPE bit.
Thanks @wafa_ath currently trying it out, would appreciate it more if u can send the python version of your code, Thanks for the help 🙌