Test VFD
This commit is contained in:
parent
fe7106cfa1
commit
c06851e824
1 changed files with 11 additions and 1 deletions
|
@ -170,9 +170,19 @@ static void loop() {
|
|||
}
|
||||
}
|
||||
|
||||
static void test() {
|
||||
// clear
|
||||
display_write(0x01, 0, 0);
|
||||
// display on, no cursor
|
||||
display_write(0x0c, 0, 0);
|
||||
display_write(0x80, (const uint8_t *) "Hello, world", 12);
|
||||
_delay_ms(1000);
|
||||
}
|
||||
|
||||
int main() {
|
||||
init();
|
||||
while (1) {
|
||||
loop();
|
||||
//loop();
|
||||
test();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue