Convert <binary.h> to native binary literals

This commit is contained in:
Alex Voinea 2023-04-24 10:42:09 +02:00
parent eb8ac250cc
commit 548ed0eb31
No known key found for this signature in database
GPG Key ID: 37EDFD565CB33BAD
1 changed files with 103 additions and 103 deletions

View File

@ -810,114 +810,114 @@ void lcd_buttons_update(void)
// Custom character data // Custom character data
const uint8_t lcd_chardata_bedTemp[8] PROGMEM = { const uint8_t lcd_chardata_bedTemp[8] PROGMEM = {
B00000, 0b00000,
B11111, 0b11111,
B10101, 0b10101,
B10001, 0b10001,
B10101, 0b10101,
B11111, 0b11111,
B00000, 0b00000,
B00000}; //thanks Sonny Mounicou 0b00000}; //thanks Sonny Mounicou
const uint8_t lcd_chardata_degree[8] PROGMEM = { const uint8_t lcd_chardata_degree[8] PROGMEM = {
B01100, 0b01100,
B10010, 0b10010,
B10010, 0b10010,
B01100, 0b01100,
B00000, 0b00000,
B00000, 0b00000,
B00000, 0b00000,
B00000}; 0b00000};
const uint8_t lcd_chardata_thermometer[8] PROGMEM = { const uint8_t lcd_chardata_thermometer[8] PROGMEM = {
B00100, 0b00100,
B01010, 0b01010,
B01010, 0b01010,
B01010, 0b01010,
B01010, 0b01010,
B10001, 0b10001,
B10001, 0b10001,
B01110}; 0b01110};
const uint8_t lcd_chardata_uplevel[8] PROGMEM = { const uint8_t lcd_chardata_uplevel[8] PROGMEM = {
B00100, 0b00100,
B01110, 0b01110,
B11111, 0b11111,
B00100, 0b00100,
B11100, 0b11100,
B00000, 0b00000,
B00000, 0b00000,
B00000}; //thanks joris 0b00000}; //thanks joris
const uint8_t lcd_chardata_refresh[8] PROGMEM = { const uint8_t lcd_chardata_refresh[8] PROGMEM = {
B00000, 0b00000,
B00110, 0b00110,
B11001, 0b11001,
B11000, 0b11000,
B00011, 0b00011,
B10011, 0b10011,
B01100, 0b01100,
B00000}; //thanks joris 0b00000}; //thanks joris
const uint8_t lcd_chardata_folder[8] PROGMEM = { const uint8_t lcd_chardata_folder[8] PROGMEM = {
B00000, 0b00000,
B11100, 0b11100,
B11111, 0b11111,
B10001, 0b10001,
B10001, 0b10001,
B11111, 0b11111,
B00000, 0b00000,
B00000}; //thanks joris 0b00000}; //thanks joris
/*const uint8_t lcd_chardata_feedrate[8] PROGMEM = { /*const uint8_t lcd_chardata_feedrate[8] PROGMEM = {
B11100, 0b11100,
B10000, 0b10000,
B11000, 0b11000,
B10111, 0b10111,
B00101, 0b00101,
B00110, 0b00110,
B00101, 0b00101,
B00000};*/ //thanks Sonny Mounicou 0b00000};*/ //thanks Sonny Mounicou
/*const uint8_t lcd_chardata_feedrate[8] PROGMEM = { /*const uint8_t lcd_chardata_feedrate[8] PROGMEM = {
B11100, 0b11100,
B10100, 0b10100,
B11000, 0b11000,
B10100, 0b10100,
B00000, 0b00000,
B00111, 0b00111,
B00010, 0b00010,
B00010};*/ 0b00010};*/
/*const uint8_t lcd_chardata_feedrate[8] PROGMEM = { /*const uint8_t lcd_chardata_feedrate[8] PROGMEM = {
B01100, 0b01100,
B10011, 0b10011,
B00000, 0b00000,
B01100, 0b01100,
B10011, 0b10011,
B00000, 0b00000,
B01100, 0b01100,
B10011};*/ 0b10011};*/
const uint8_t lcd_chardata_feedrate[8] PROGMEM = { const uint8_t lcd_chardata_feedrate[8] PROGMEM = {
B00000, 0b00000,
B00100, 0b00100,
B10010, 0b10010,
B01001, 0b01001,
B10010, 0b10010,
B00100, 0b00100,
B00000, 0b00000,
B00000}; 0b00000};
const uint8_t lcd_chardata_clock[8] PROGMEM = { const uint8_t lcd_chardata_clock[8] PROGMEM = {
B00000, 0b00000,
B01110, 0b01110,
B10011, 0b10011,
B10101, 0b10101,
B10001, 0b10001,
B01110, 0b01110,
B00000, 0b00000,
B00000}; //thanks Sonny Mounicou 0b00000}; //thanks Sonny Mounicou
void lcd_set_custom_characters(void) void lcd_set_custom_characters(void)
{ {
@ -932,23 +932,23 @@ void lcd_set_custom_characters(void)
} }
const uint8_t lcd_chardata_arr2down[8] PROGMEM = { const uint8_t lcd_chardata_arr2down[8] PROGMEM = {
B00000, 0b00000,
B00000, 0b00000,
B10001, 0b10001,
B01010, 0b01010,
B00100, 0b00100,
B10001, 0b10001,
B01010, 0b01010,
B00100}; 0b00100};
const uint8_t lcd_chardata_confirm[8] PROGMEM = { const uint8_t lcd_chardata_confirm[8] PROGMEM = {
B00000, 0b00000,
B00001, 0b00001,
B00011, 0b00011,
B10110, 0b10110,
B11100, 0b11100,
B01000, 0b01000,
B00000}; 0b00000};
void lcd_set_custom_characters_nextpage(void) void lcd_set_custom_characters_nextpage(void)
{ {