pride - Pride flags¶
The pride module provides an easy interface to print pride flags to the top LEDs and the display.
- 
pride.expand(colors, cutoff=12)[source]¶
- Expands the raw color list to a longer list, for example for the 11 LEDs. - Parameters
- colors (int) – Color list to be expanded. 
- cutoff (int) – How long the expanded list is to be. Default = 12 
 
 
- 
pride.show_leds(flag='rainbow', brightness=0.5, gamma=1, cutoff=12, halo=True)[source]¶
- Shows pride flag on the top leds. - Parameters
- flag (str) – Chooses flag. A list of all available flags is accessible via print_all(). Default = ‘rainbow’ 
- brightness (float) – Set brightness of LEDs. Default = 0.5 
- gamma (float) – Apply simple gamma correction to adjust colors. Default = 1 
- cutoff (int) – See expand(). Default = 12 
- halo (bool) – Bottom LEDs copy outermost top LEDs if true. Default = True 
 
 
- 
pride.show_display(flag='rainbow', brightness=1, gamma=1)[source]¶
- Shows pride flag on the display. - Parameters
- flag (str) – Chooses flag. A list of all available flags is accessible via print_all(). Default = ‘rainbow’ 
- brightness (float) – Set brightness of LEDs. Default = 0.5 
- gamma (float) – Apply simple gamma correction to adjust colors. Default = 1