From c06851e824a25b2b01fa4c9fe759fbfaf03e68bb Mon Sep 17 00:00:00 2001 From: Gregor Riepl Date: Wed, 21 Apr 2021 23:23:27 +0200 Subject: [PATCH] Test VFD --- display/firmware/main.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/display/firmware/main.c b/display/firmware/main.c index 9b7ef12..b35e891 100644 --- a/display/firmware/main.c +++ b/display/firmware/main.c @@ -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(); } }