コード例 #1
0
 static void CreateWalkCharacters(Hd44780Base lcd)
 {
     // Walk 1
     lcd.CreateCustomCharacter(0,
                               0b_00110,
                               0b_00110,
                               0b_01100,
                               0b_10111,
                               0b_00100,
                               0b_01110,
                               0b_01010,
                               0b_10001);
     // Walk 2
     lcd.CreateCustomCharacter(1,
                               0b_00110,
                               0b_00110,
                               0b_01100,
                               0b_01100,
                               0b_00110,
                               0b_00110,
                               0b_01010,
                               0b_01010);
 }
コード例 #2
0
 static void CreateTensCharacters(Hd44780Base lcd)
 {
     // 10
     lcd.CreateCustomCharacter(0,
                               0b_10000,
                               0b_10000,
                               0b_10000,
                               0b_10000,
                               0b_10111,
                               0b_00101,
                               0b_00101,
                               0b_00111);
     // 20
     lcd.CreateCustomCharacter(1,
                               0b_11100,
                               0b_00100,
                               0b_11100,
                               0b_10000,
                               0b_11111,
                               0b_00101,
                               0b_00101,
                               0b_00111);
     // 30
     lcd.CreateCustomCharacter(2,
                               0b_11100,
                               0b_00100,
                               0b_11100,
                               0b_00100,
                               0b_11111,
                               0b_00101,
                               0b_00101,
                               0b_00111);
     // 40
     lcd.CreateCustomCharacter(3,
                               0b_10100,
                               0b_10100,
                               0b_11100,
                               0b_00100,
                               0b_00111,
                               0b_00101,
                               0b_00101,
                               0b_00111);
     // 50
     lcd.CreateCustomCharacter(4,
                               0b_11100,
                               0b_10000,
                               0b_11100,
                               0b_00100,
                               0b_11111,
                               0b_00101,
                               0b_00101,
                               0b_00111);
     // 60
     lcd.CreateCustomCharacter(5,
                               0b_11100,
                               0b_10000,
                               0b_11100,
                               0b_10100,
                               0b_11111,
                               0b_00101,
                               0b_00101,
                               0b_00111);
     // 70
     lcd.CreateCustomCharacter(6,
                               0b_11100,
                               0b_00100,
                               0b_01000,
                               0b_01000,
                               0b_01111,
                               0b_00101,
                               0b_00101,
                               0b_00111);
     // 80
     lcd.CreateCustomCharacter(7,
                               0b_11100,
                               0b_10100,
                               0b_11100,
                               0b_10100,
                               0b_11111,
                               0b_00101,
                               0b_00101,
                               0b_00111);
 }