nk25719 / PMD___aka-KiCad-esp32-6leds-2switches-1pj-circuit-

In this repo I am practicing KICAD. Created an ESP32 DevKit V1 module and a PCB footprint. I designed a circuit around this ESP32 consisting of six lamps, four switches, and two power jacks and added a voltage regulater to Vin to maintain a supply of +5V. (This project was originally made of two switches and 1 power jack and was named homeWork2.)
0 stars 1 forks source link

Enhance the Factory Test Firmware, LED Test. #36

Closed nk25719 closed 1 month ago

nk25719 commented 1 month ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] The current Test fails to detect shorts between LEDs Opperate every LED independantly of every other LED

Describe the solution you'd like A clear and concise description of what you want to happen. Adding a Marching 1 and a marching 0

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

ForrestErickson commented 1 month ago

Get Help Coding

I decided to ask ChatGPT for some coding ideas. It returned this which I have not tried:

https://chatgpt.com/share/8afc3085-eb42-4212-ace3-92c104a99e49

Bad Limitation of this code

Note this program uses delay() and does not multi task.
The consequence of this is that it is not compatible with for example testing for a tach switch press.

Coding Challenge

How could it be rewritten to multi task?

nk25719 commented 1 month ago

https://github.com/nk25719/KiCad-esp32-6leds-2switches-1pj-circuit/tree/main/FIRMWARE/marchingOneTest

https://github.com/nk25719/KiCad-esp32-6leds-2switches-1pj-circuit/tree/main/FIRMWARE/marchingZeroTest

cc: @ForrestErickson