tinue / apa102-pi

Pure Python library to drive APA102 LED stripes; Use with Raspberry Pi.
GNU General Public License v2.0
202 stars 72 forks source link

added get_pixel and get_pixel_rgb functions #46

Closed RubenMomoa closed 3 years ago

RubenMomoa commented 3 years ago

Gets the color and brightness of one pixel in the LED stripe. This wont be the color that is actually show on the stripe, But rather the value stored in memory.

The bright_percent value is recalculated from the stored binary value And wont be the precise value used when setting the pixel But the value will be te one that is used by the LED

usage: get_pixel( led_num ) or get_pixel_rgb( led_num )

tinue commented 3 years ago

Thanks for the contribution. I have merged the code into the "develop" branch for now.