From 8f9cd223c74ce0b026ae3368701a443f62d7b3d5 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Sat, 27 Feb 2021 22:09:06 +1300 Subject: Migrate display to new peripheral model --- altimeter.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'altimeter.c') diff --git a/altimeter.c b/altimeter.c index db45eb7..db18659 100644 --- a/altimeter.c +++ b/altimeter.c @@ -49,12 +49,14 @@ ISR(TIMER1_COMPA_vect) int main(void) { + struct display display; struct barometer barometer; struct timer timer; /* Initialise display before enabling interrupts */ - display_init(); - display_clear(); + get_system_display(&display); + display.init(); + display.clear(); /* get descriptors for system default peripherals */ get_system_barometer(&barometer); -- cgit v1.1