diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-02-11 19:44:48 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-02-11 19:44:48 +0100 |
commit | ae68513e744e2a7d99ee085c02de227b135b5a7d (patch) | |
tree | c7abb89b9771407a4f03896de3d32724d50faba9 /src/app | |
parent | 260953b9957aa4c10a72ea550dfe2920f36583ff (diff) |
ssd1306test: initialize gpios (required for softi2c)
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/ssd1306test/main.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/app/ssd1306test/main.cc b/src/app/ssd1306test/main.cc index ce3fef7..0d72c12 100644 --- a/src/app/ssd1306test/main.cc +++ b/src/app/ssd1306test/main.cc @@ -4,12 +4,15 @@ * SPDX-License-Identifier: BSD-2-Clause */ #include "arch.h" +#include "driver/gpio.h" #include "driver/stdout.h" + #if defined(CONFIG_meta_driver_hardware_i2c) #include "driver/i2c.h" #elif defined(CONFIG_driver_softi2c) #include "driver/soft_i2c.h" #endif + #include "driver/ssd1306.h" #include "object/framebuffer.h" #include "lib/pixelfont/pixeloperator_mirrored.h" @@ -25,6 +28,7 @@ void loop(void) int main(void) { arch.setup(); + gpio.setup(); kout.setup(); i2c.setup(); ssd1306.init(); |