MCPcopy Create free account
hub / github.com/cifertech/nRFBox / updateOLED

Function updateOLED

nRFBox_V2/blejammer.cpp:100–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void updateOLED() {
101 u8g2.clearBuffer();
102 u8g2.setFont(u8g2_font_ncenB08_tr);
103
104 u8g2.setCursor(0, 10);
105 u8g2.print("Mode ");
106 u8g2.print(" ....... ");
107 u8g2.setCursor(65, 10);
108 u8g2.print("[");
109 u8g2.print(currentMode == BLE_MODULE ? "BLE" : currentMode == Bluetooth_MODULE ? "Bluetooth" : "Deactive");
110 u8g2.print("]");
111
112 u8g2.setCursor(0, 35);
113 u8g2.print("Radio 1: ");
114 u8g2.setCursor(70, 35);
115 u8g2.print(radio1.isChipConnected() ? "Active" : "Inactive");
116
117 u8g2.setCursor(0, 50);
118 u8g2.print("Radio 2: ");
119 u8g2.setCursor(70, 50);
120 u8g2.print(radio2.isChipConnected() ? "Active" : "Inactive");
121
122 u8g2.setCursor(0, 64);
123 u8g2.print("Radio 3: ");
124 u8g2.setCursor(70, 64);
125 u8g2.print(radio3.isChipConnected() ? "Active" : "Inactive");
126
127 u8g2.sendBuffer();
128}
129
130void checkModeChange() {
131 if (modeChangeRequested) {

Callers 2

checkModeChangeFunction · 0.70
blejammerSetupFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected