aboutsummaryrefslogtreecommitdiff
path: root/altimeter.c
diff options
context:
space:
mode:
authorDavid Phillips <david@yeah.nah.nz>2021-02-27 22:09:06 +1300
committerDavid Phillips <david@yeah.nah.nz>2021-02-27 22:09:06 +1300
commit8f9cd223c74ce0b026ae3368701a443f62d7b3d5 (patch)
tree77d276b9904263d3c6833e213e677dbc0f16679a /altimeter.c
parent27d6d2fc5a1647395a7a9074faf8362d6d0c358a (diff)
downloadaltimeter-8f9cd223c74ce0b026ae3368701a443f62d7b3d5.tar.xz
Migrate display to new peripheral model
Diffstat (limited to 'altimeter.c')
-rw-r--r--altimeter.c6
1 files changed, 4 insertions, 2 deletions
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);