AlkaMotors / AM32-MultiRotor-ESC-firmware

Firmware for stm32f051 based speed controllers for use with mutirotors
GNU General Public License v3.0
738 stars 264 forks source link

RGB LED blink #111

Open frank26080115 opened 12 months ago

frank26080115 commented 12 months ago

added RGB LED, including a blink pattern engine

it uses the 10 kHz routine, but the blink pattern is executed at 100ms time frames

I have defined some patterns. The three primary patterns are

primary patterns are run in a continuous loop

then there are event indicators, called secondary patterns, they execute only once and then goes back to the previous primary pattern

the events are defined for current limit, stall, desync, and low batt, but I only actually put current limit and low batt into this particular pull request. I don't have enough knowledge about the code or a test setup to test stall and desync effectively

I've added the Aria 70A target as the test target, giving a template on how to define the RGB pins for a target. I've also attempted to make sure that other targets retain their previous behavior. My code does work together with USE_LED_STRIP

Please review