Merge pull request #1269 from pkendall64/crsf-max-output
[ExpressLRS.git] / src / lib / SCREEN / OLED / oledscreen.h
bloba632a6e9234cde985f3fe267ec824a05f54f4375
1 /*
2 * This file is part of the ExpressLRS distribution (https://github.com/ExpressLRS/ExpressLRS).
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, version 3.
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 #pragma once
19 #include "screen.h"
21 class OLEDScreen: public Screen
23 private:
24 void doRateValueSelect(int action);
25 void doPowerValueSelect(int action);
26 void doRatioValueSelect(int action);
27 void doPowerSavingValueSelect(int action);
28 void doSmartFanValueSelect(int action);
30 void updateMainMenuPage();
31 void updateSubFunctionPage();
32 void updateSubWIFIModePage();
33 void updateSubBindConfirmPage();
34 void updateSubBindingPage();
36 void doPageBack();
37 void doPageForward();
38 void doValueConfirm();
40 void displayMainScreen();
42 public:
44 void init(bool reboot);
45 void idleScreen();
46 void doParamUpdate(uint8_t rate_index, uint8_t power_index, uint8_t ratio_index, uint8_t motion_index, uint8_t fan_index);
47 void doTemperatureUpdate(uint8_t temperature);
48 void doScreenBackLight(int state);