This video is about the WS2812B LED Tester application for the Flipper Zero. We look at the application, how to modify the application for different colors, and how to write your own Flipper Zero application that controls WS2812B LEDs! The driver for controlling WS2812B LEDs is using the Timer API, which is capable of controlling 1000 LEDs and is very accurate.
WARNING: Make sure you are not trying to consume more than 1Amp of current from the +5V or +3.3V pins of the Flipper Zero! If you aren't sure, use an external power source to power the LEDs and ONLY connect the GND & A7 pins from the Flipper Zero to the LEDs.
This tester application was originally written for controlling the backlight LEDs on Z3BROs devices, and Z3BRO worked with me on the design. I was able to use a version of the driver to control LEDs on the FlipBoard from MakeItHackin! The FlipBoard added an additional requirement of being able to use any GPIO pin (or at least pin C3). Hopefully, this means the driver should meet your requirements, but feel free to reach out on Discord if you have additional requirements.
Join the discord server (conversations and giveaways):
/ discord
Application folder...
https://github.com/jamisonderek/flipp...
Configure your dev environment...
video - • [51] Flipper Zero - Windows developme...
written directions - https://github.com/jamisonderek/flipb...
Purchase your FlipBoard at...
https://github.com/MakeItHackin/FlipB...
Support the channel:
Option 1. Like, Subscribe and click the Bell (to get notified)
Option 2. https://ko-fi.com/codeallnight (donate $3 via PayPal or Venmo)
Option 3. Click the "Thanks" button on YouTube.
Lesson summary:
Timer API sends exact pulses instead of SPI (which can get out of sync because we don't have a SCK wire.)
Lower brightness uses less current. Be sure not to exceed the maximum current of the Flipper. Different lights draw different amounts, so TEST before trying (or better yet, use an external power source).
Any GPIO pin can be used with the LED driver.
Colors are in 0xRRGGBB format (00-FF for each color; 0 to 255).
Combining light is different than combining pigments (combining all gives White light, vs. Black pigment)
led_driver_alloc allocates driver.
led_driver_set_led sets the new color of a LED (but does not update the LED).
led_driver_transmit updates the LEDs to show the new color.
led_driver_free frees driver (but does NOT turn off the LEDs)
Timeline:
0:00 - Introduction
1:06 - WS2812B LED Tester
3:15 - Current consumption
3:25 - WS2812B-tester app
4:00 - Adding custom color (MCMC)
6:00 - Adding Green/Red + effect (GRGR)
9:10 - Writing Flipper Zero code to control LEDs
11:27 - Summary
Watch video [94] Flipper Zero - WS2812B LED Tester & LED Driver online, duration hours minute second in high quality that is uploaded to the channel Derek Jamison 09 December 2023. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 1,815 times and liked it 51 visitors.