void OLEDFourBit::defineCustomChar7(void) { // Custom Character 7 byte cc7[8] = { B00000, B11100, B11110, B11111, B11111, B11111, B11111, B11111 }; createChar(7, cc7); }
Token* TokenFactory::getLineBegin() { if (fLineBegin == 0) fLineBegin = createChar(chCaret, true); return fLineBegin; }
Token* TokenFactory::getWordEnd() { if (fWordEnd == 0) fWordEnd = createChar(chCloseAngle, true); return fWordEnd; }
void OLEDFourBit::defineCustomChar5(void) { // Custom Character 5 byte cc5[8] = { B11111, B11111, B11111, B11111, B11111, B11111, B00000, B00000 }; createChar(5, cc5); }
Token* TokenFactory::getStringEnd() { if (fStringEnd == 0) fStringEnd = createChar(chLatin_z, true); return fStringEnd; }
Token* TokenFactory::getStringBegin() { if (fStringBegin == 0) fStringBegin = createChar(chLatin_A, true); return fStringBegin; }
Token* TokenFactory::getWordEdge() { if (fWordEdge == 0) fWordEdge = createChar(chLatin_b, true); return fWordEdge; }
Token* TokenFactory::getLineBegin2() { if (fLineBegin2 == 0) fLineBegin2 = createChar(chAt, true); return fLineBegin2; }
Token* TokenFactory::getWordBegin() { if (fWordBegin == 0) fWordBegin = createChar(chOpenAngle, true); return fWordBegin; }
Token* TokenFactory::getNotWordEdge(){ if (fNotWordEdge == 0) fNotWordEdge = createChar(chLatin_B, true); return fNotWordEdge; }
void OLEDFourBit::defineCustomChar6(void) { // Custom Character 6 byte cc6[8] = { B00000, B11111, B11111, B11111, B11111, B11111, B00000, B00000 }; createChar(6, cc6); }
Token* TokenFactory::getLineEnd() { if (fLineEnd == 0) fLineEnd = createChar(chDollarSign, true); return fLineEnd; }
void OLEDFourBit::defineCustomChar4(void) { // Custom Character 4 byte cc4[8] = { B11111, B11111, B11111, B11111, B11111, B11111, B01111, B00111 }; createChar(4, cc4); }
Token* TokenFactory::getStringEnd2() { if (fStringEnd2 == 0) fStringEnd2 = createChar(chLatin_Z, true); return fStringEnd2; }
void OLEDFourBit::defineCustomChar3(void) { // Custom Character 3 byte cc3[8] = { B00000, B00000, B00000, B11111, B11111, B11111, B11111, B11111 }; createChar(3, cc3); }
void OLEDFourBit::defineCustomChar2(void) { // Custom Character 2 byte cc2[8] = { B11111, B11111, B11111, B11111, B11111, B00000, B00000, B00000 }; createChar(2, cc2); }
void OLEDFourBit::defineCustomChar1(void) { // Custom Character 1 byte cc1[8] = { B11100, B11110, B11111, B11111, B11111, B11111, B11111, B11111 }; createChar(1, cc1); }
void OLEDFourBit::defineCustomChar0(void) { // Custom Character 0 byte cc0[8] = { B00000, B00111, B01111, B11111, B11111, B11111, B11111, B11111 }; createChar(0, cc0); }
void LiquidCrystal_I2C::init_priv() { Wire.begin(); _displayfunction = LCD_4BITMODE | LCD_1LINE | LCD_5x8DOTS; begin(_cols, _rows); // create custom chars uint8_t bell[8] = {0x4, 0xe, 0xe, 0xe, 0x1f,0x0, 0x4}; uint8_t note[8] = {0x2, 0x3, 0x2, 0xe, 0x1e,0xc, 0x0}; uint8_t clock[8] = {0x0, 0xe, 0x15,0x17,0x11,0xe, 0x0}; uint8_t smiley[8] = {0x0, 0x11,0x0, 0x0, 0x11,0xe, 0x0}; uint8_t heart[8] = {0x0, 0xa, 0x1f,0x1f,0xe, 0x4, 0x0}; uint8_t duck[8] = {0x0, 0xc, 0x1d,0xf, 0xf, 0x6, 0x0}; uint8_t check[8] = {0x0, 0x1, 0x3, 0x16,0x1c,0x8, 0x0}; uint8_t cross[8] = {0x0, 0x1b,0xe, 0x4, 0xe, 0x1b,0x0}; uint8_t retarrow[8] = {0x1, 0x1, 0x5, 0x9, 0x1f,0x8, 0x4}; uint8_t celcius[8] = {0x10,0x6, 0x9, 0x8, 0x8, 0x9, 0x6}; uint8_t pipe[8] = {0x4, 0x4, 0x4, 0x4, 0x4, 0x4, 0x4}; createChar(lcd_bell,bell); createChar(lcd_note,note); createChar(lcd_clock,clock); createChar(lcd_smiley,smiley); createChar(lcd_duck,duck); createChar(lcd_celcius,celcius); createChar(lcd_pipe,pipe); home(); }
char * init(unsigned long int sz, int ratio){ int i=0; char *text = (char *) mymalloc(sz+1); srand(1);// ensures that all strings are identical for(i=0;i<sz;i++){ char c = createChar(ratio); text[i]=c; } text[i] = '\0'; return text; }
void DISPLAY::createBars() { const char *bars[8] = { "\x00\x00\x00\x00\x00\x00\x00\x1f", "\x00\x00\x00\x00\x00\x00\x1f\x1f", "\x00\x00\x00\x00\x00\x1f\x1f\x1f", "\x00\x00\x00\x00\x1f\x1f\x1f\x1f", "\x00\x00\x00\x1f\x1f\x1f\x1f\x1f", "\x00\x00\x1f\x1f\x1f\x1f\x1f\x1f", "\x00\x1f\x1f\x1f\x1f\x1f\x1f\x1f", "\x1f\x1f\x1f\x1f\x1f\x1f\x1f\x1f" }; for (int i=0; i<8; i++) createChar(i, (uint8_t*) bars[i]); }
void LiquidCrystal_1602_RUS::CharSetToLCD(uint8_t *array, uint8_t *index) { uint8_t x,y; if(*index == 255)// Если символ еще не создан, то создаем { x = getCursorCol(); y = getCursorRow(); createChar(symbol_index, (uint8_t *)array);// Создаем символ на текущем (по очереди) месте в знакогенераторе (от 0 до MAX_SYMBOL_COUNT) setCursor(x,y); write(symbol_index);// Выводим символ на экран //Запомианем, что букве соответствует определенный индекс *index = symbol_index; symbol_index++; if(symbol_index >= MAX_SYMBOL_COUNT) symbol_index = 0; } else //Иначе печатаем уже существующий write(*index); }
void tinyLCD_I2C::load_custom_character(uint8_t char_num, uint8_t *rows){ createChar(char_num, rows); }
void T123::load_custom_character(uint8_t char_num, uint8_t *rows){ createChar(char_num, rows); }
void PCF8574_HD44780_I2C::load_custom_character(uint8_t char_num, uint8_t *rows){ createChar(char_num, rows); }
void OLEDFourBit::defineLockedChar(uint8_t location) { byte cc[8] = { 14, 17, 17, 31, 27, 27, 31, 0 }; createChar(location, cc); }
void ActorFactory::createEnemyCharacter(Encounter* parent, PFMapCharInstance& data) { createChar(parent, data); }
void LiquidCrystal_I2C::load_custom_character(uint8_t char_num, uint8_t *rows){ createChar(char_num, rows); }
void OLEDFourBit::defineDownwardsArrowChar(uint8_t location) { byte cc[8] = { B00000, B00100, B00100, B00100, B00100, B10101, B01110, B00100 }; createChar(location, cc); }