int format_table[] = {
};
int format_table_size = sizeof( format_table ) / sizeof( format_table[ 0 ] );
const char* bold_str = "Bold";
const char* low_int_str = "Low Intensity";
const char* italic_str = "Italic";
const char* underline_str = "Underline";
const char* blink_str = "Blink";
const char* reverse_str = "Reverse";
const char* background_str = "Background";
const char* invisible_str = "Invisible";
const char* name_table[] = {
bold_str,
low_int_str,
italic_str,
underline_str,
blink_str,
reverse_str,
background_str,
invisible_str
};
int color_table[] = {
};
int color_table_size = sizeof( color_table ) / sizeof( color_table[ 0 ] );
int background_color_table[] = {
};
void setup(){
Serial.begin(115200);
int x;
int y;
shell.clear();
Serial.println( "--- Style Matrix ---");
Serial.println();
for( y = 0; y < format_table_size; y++ ){
for( x = 0; x < color_table_size; x++ ){
shell.format( &Serial, color_table[ x ], format_table[ y ] );
Serial.print( "X");
}
Serial.print( " " );
Serial.println( name_table[ y ] );
}
Serial.println();
Serial.println( "--- Background Matrix ---");
Serial.println();
for( y = 0; y < color_table_size; y++ ){
for( x = 0; x < color_table_size; x++ ){
shell.format( &Serial, color_table[ x ], background_color_table[ y ] );
Serial.print( "X");
}
Serial.println();
}
}
void loop(){
}
@ BLINKING
Blinking text style.
@ BACKGROUND
Background text style.
@ LOW_INTENSITY
Low intensity text style.
@ UNDERLINE
Underline text style.
@ ITALIC
Italic text style.
@ REVERSE
Reverse text style.
@ REGULAR
Regular text style.
@ INVISIBLE
Invisible text style.
@ BG_YELLOW
Yellow text color.
@ BG_MAGENTA
Magenta text color.
@ BG_BLACK
Black text color.
@ BG_WHITE
White text color.
@ BG_CYAN
Cyane text color.
@ BG_BLUE
Blue text color.
@ BG_GREEN
Green text color.
@ YELLOW
Yellow text color.
@ MAGENTA
Magenta text color.