connornishijima / Pixie_Chroma

Arduino library and documentation for Pixie Chroma displays!
https://lixielabs.com/chroma/
MIT License
53 stars 9 forks source link

Add set_print_color(CRGB) function #45

Closed github-actions[bot] closed 2 years ago

github-actions[bot] commented 2 years ago

Add set_print_color(CRGB) function

This allows manual color to be automatically applied during subsequent print() calls.

Usage:

set_print_color( CRGB::Red );

print( "RED " );

print( "color!" ); // Prints in red

set_print_color( CRGB::Green );

print( "GREEN " );

print( "color!" ); // Prints in green

https://github.com/connornishijima/Pixie_Chroma/blob/f1a6c28eda1e42fa19ffc1a053da166ac91c8787/src/pixie_chroma_internal.h#L15


#include "Arduino.h"

// TODO: Add set_print_color(CRGB) function
// This allows manual color to be automatically applied during subsequent print() calls.
// 
// Usage:
//     set_print_color( CRGB::Red );
//     print( "RED " );   
//     print( "color!" ); // Prints in red
//     set_print_color( CRGB::Green );
//     print( "GREEN " );   
//     print( "color!" ); // Prints in green

/*! Modes for updating Pixie Chroma displays */
enum t_update_mode {
    AUTOMATIC, /*!< Will call show() at a specified FPS using an ISR */

3b61e34a32ea08175c3ef013e85d816c26e752c9

connornishijima commented 2 years ago

Internally, this could call pix.color(CRGB,X_POS,Y_POS) when add_char(chr,X_POS,Y_POS) is called.

github-actions[bot] commented 2 years ago

Closed in 4170eb3918eb667758eabd7a6e41d2b44b12ab5f