2 * This file is part of Cleanflight and Betaflight.
4 * Cleanflight and Betaflight are free software. You can redistribute
5 * this software and/or modify this software under the terms of the
6 * GNU General Public License as published by the Free Software
7 * Foundation, either version 3 of the License, or (at your option)
10 * Cleanflight and Betaflight are distributed in the hope that they
11 * will be useful, but WITHOUT ANY WARRANTY; without even the implied
12 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * See the GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this software.
18 * If not, see <http://www.gnu.org/licenses/>.
23 #include "common/time.h"
25 #include "drivers/bus_i2c.h"
27 #define ENABLE_DEBUG_DASHBOARD_PAGE
29 #if !defined(DASHBOARD_I2C_INSTANCE)
30 #if defined(I2C_DEVICE)
31 #define DASHBOARD_I2C_INSTANCE I2C_DEVICE
33 #define DASHBOARD_I2C_INSTANCE I2C_NONE
37 #define DASHBOARD_I2C_ADDRESS 0x3C // OLED at address 0x3C in 7bit
51 #ifdef ENABLE_DEBUG_DASHBOARD_PAGE
60 void dashboardInit(void);
61 void dashboardUpdate(timeUs_t currentTimeUs
);
63 void dashboardShowFixedPage(pageId_e pageId
);
65 void dashboardEnablePageCycling(void);
66 void dashboardDisablePageCycling(void);
67 void dashboardResetPageCycling(void);
68 void dashboardSetNextPageChangeAt(timeUs_t futureMicros
);