mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Separate pg related to pg directory
This commit is contained in:
parent
1c3a3229ad
commit
93ce6e542a
7 changed files with 66 additions and 26 deletions
|
@ -23,21 +23,16 @@
|
|||
|
||||
#define ENABLE_DEBUG_DASHBOARD_PAGE
|
||||
|
||||
#ifdef OLED_I2C_INSTANCE
|
||||
#define DASHBOARD_I2C_INSTANCE OLED_I2C_INSTANCE
|
||||
#if !defined(DASHBOARD_I2C_INSTANCE)
|
||||
#if defined(I2C_DEVICE)
|
||||
#define DASHBOARD_I2C_INSTANCE I2C_DEVICE
|
||||
#else
|
||||
#define DASHBOARD_I2C_INSTANCE I2CDEV_1
|
||||
#define DASHBOARD_I2C_INSTANCE I2C_NONE
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define DASHBOARD_I2C_ADDRESS 0x3C // OLED at address 0x3C in 7bit
|
||||
|
||||
typedef struct dashboardConfig_s {
|
||||
I2CDevice device;
|
||||
uint8_t address;
|
||||
} dashboardConfig_t;
|
||||
|
||||
PG_DECLARE(dashboardConfig_t, dashboardConfig);
|
||||
|
||||
typedef enum {
|
||||
PAGE_WELCOME,
|
||||
PAGE_ARMED,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue