1#ifndef Driver_PicoDisplay_STM32_API_h
2#define Driver_PicoDisplay_STM32_API_h
20#include "colony_config.h"
21#include "pimoroni_common.hpp"
22#include "pico_display.hpp"
26#ifndef OPTION_DRIVER_PICO_DISPLAY_STM32_BUTTON_A_PIN
27#error Must define: OPTION_DRIVER_PICO_DISPLAY_STM32_BUTTON_A_PIN
30#ifndef OPTION_DRIVER_PICO_DISPLAY_STM32_BUTTON_A_PORT
31#error Must define: OPTION_DRIVER_PICO_DISPLAY_STM32_BUTTON_A_PORT
36#ifndef OPTION_DRIVER_PICO_DISPLAY_STM32_BUTTON_B_PIN
37#error Must define: OPTION_DRIVER_PICO_DISPLAY_STM32_BUTTON_B_PIN
40#ifndef OPTION_DRIVER_PICO_DISPLAY_STM32_BUTTON_B_PORT
41#error Must define: OPTION_DRIVER_PICO_DISPLAY_STM32_BUTTON_B_PORT
45#ifndef OPTION_DRIVER_PICO_DISPLAY_STM32_BUTTON_X_PIN
46#error Must define: OPTION_DRIVER_PICO_DISPLAY_STM32_BUTTON_X_PIN
49#ifndef OPTION_DRIVER_PICO_DISPLAY_STM32_BUTTON_X_PORT
50#error Must define: OPTION_DRIVER_PICO_DISPLAY_STM32_BUTTON_X_PORT
54#ifndef OPTION_DRIVER_PICO_DISPLAY_STM32_BUTTON_Y_PIN
55#error Must define: OPTION_DRIVER_PICO_DISPLAY_STM32_BUTTON_Y_PIN
58#ifndef OPTION_DRIVER_PICO_DISPLAY_STM32_BUTTON_Y_PORT
59#error Must define: OPTION_DRIVER_PICO_DISPLAY_STM32_BUTTON_Y_PORT
63#ifndef OPTION_DRIVER_PICO_DISPLAY_STM32_RGB_RED_TIMER
64#error Must define: OPTION_DRIVER_PICO_DISPLAY_STM32_RGB_RED_TIMER
67#ifndef OPTION_DRIVER_PICO_DISPLAY_STM32_RGB_RED_CHANNEL
68#error Must define: OPTION_DRIVER_PICO_DISPLAY_STM32_RGB_RED_CHANNEL
72#ifndef OPTION_DRIVER_PICO_DISPLAY_STM32_RGB_GREEN_TIMER
73#error Must define: OPTION_DRIVER_PICO_DISPLAY_STM32_RGB_GREEN_TIMER
76#ifndef OPTION_DRIVER_PICO_DISPLAY_STM32_RGB_GREEN_CHANNEL
77#error Must define: OPTION_DRIVER_PICO_DISPLAY_STM32_RGB_GREEN_CHANNEL
81#ifndef OPTION_DRIVER_PICO_DISPLAY_STM32_RGB_BLUE_TIMER
82#error Must define: OPTION_DRIVER_PICO_DISPLAY_STM32_RGB_BLUE_TIMER
85#ifndef OPTION_DRIVER_PICO_DISPLAY_STM32_RGB_BLUE_CHANNEL
86#error Must define: OPTION_DRIVER_PICO_DISPLAY_STM32_RGB_BLUE_CHANNEL
90#ifndef OPTION_DRIVER_PICO_DISPLAY_STM32_LCD_ROTATION
91#define OPTION_DRIVER_PICO_DISPLAY_STM32_LCD_ROTATION pimoroni::ROTATE_0
95#ifndef OPTION_DRIVER_PICO_DISPLAY_STM32_SPI_BUS
96#error Must define: OPTION_DRIVER_PICO_DISPLAY_STM32_SPI_BUS
100#ifndef OPTION_DRIVER_PICO_DISPLAY_STM32_SPI_CS_PIN
101#error Must define: OPTION_DRIVER_PICO_DISPLAY_STM32_SPI_CS_PIN
104#ifndef OPTION_DRIVER_PICO_DISPLAY_STM32_SPI_CS_PORT
105#error Must define: OPTION_DRIVER_PICO_DISPLAY_STM32_SPI_CS_PORT
109#ifndef OPTION_DRIVER_PICO_DISPLAY_STM32_SPI_DC_PIN
110#error Must define: OPTION_DRIVER_PICO_DISPLAY_STM32_SPI_DC_PIN
113#ifndef OPTION_DRIVER_PICO_DISPLAY_STM32_SPI_DC_PORT
114#error Must define: OPTION_DRIVER_PICO_DISPLAY_STM32_SPI_DC_PORT
118#ifndef OPTION_DRIVER_PICO_DISPLAY_STM32_BACKLIGHT_PWM_TIMER
119#error Must define: OPTION_DRIVER_PICO_DISPLAY_STM32_BACKLIGHT_PWM_TIMER
122#ifndef OPTION_DRIVER_PICO_DISPLAY_STM32_BACKLIGHT_PWM_CHANNEL
123#error Must define: OPTION_DRIVER_PICO_DISPLAY_STM32_BACKLIGHT_PWM_CHANNEL
130namespace PicoDisplay {
void initialize()
This method is used to initialize the platform specific drivers.