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

Function updateDisplay

nRFBox_V2/spoofer.cpp:104–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104void updateDisplay() {
105 u8g2.clearBuffer();
106
107 // Display device type
108 u8g2.setFont(u8g2_font_profont11_tf);
109 u8g2.drawStr(0, 10, "Device:");
110 int x = 0;
111 int y = 25;
112
113
114 switch (deviceType) {
115 case 1:
116 u8g2.drawStr(x, y, "[ Airpods ]");
117 break;
118 case 2:
119 u8g2.drawStr(x, y, "[ Airpods Pro ]");
120 break;
121 case 3:
122 u8g2.drawStr(x, y, "[ Airpods Max ]");
123 break;
124 case 4:
125 u8g2.drawStr(x, y, "[ Airpods Gen 2 ]");
126 break;
127 case 5:
128 u8g2.drawStr(x, y, "[ Airpods Gen 3 ]");
129 break;
130 case 6:
131 u8g2.drawStr(x, y, "[ Airpods Gen 2 ]");
132 break;
133 case 7:
134 u8g2.drawStr(x, y, "[ PowerBeats ]");
135 break;
136 case 8:
137 u8g2.drawStr(x, y, "[ PowerBeats Pro ]");
138 break;
139 case 9:
140 u8g2.drawStr(x, y, "[ Beats Solo Pro ]");
141 break;
142 case 10:
143 u8g2.drawStr(x, y, "[ Beats Buds ]");
144 break;
145 case 11:
146 u8g2.drawStr(x, y, "[ Beats Flex ]");
147 break;
148 case 12:
149 u8g2.drawStr(x, y, "[ BeatsX ]");
150 break;
151 case 13:
152 u8g2.drawStr(x, y, "[ Beats Solo3 ]");
153 break;
154 case 14:
155 u8g2.drawStr(x, y, "[ Beats Studio3 ]");
156 break;
157 case 15:
158 u8g2.drawStr(x, y, "[ Beats StudioPro ]");
159 break;
160 case 16:
161 u8g2.drawStr(x, y, "[ Beats FitPro ]");

Callers 8

setAdvertisingDataFunction · 0.70
handleButtonPressFunction · 0.70
changeDeviceTypeNextFunction · 0.70
changeDeviceTypePrevFunction · 0.70
changeAdvTypeNextFunction · 0.70
changeAdvTypePrevFunction · 0.70
toggleAdvertisingFunction · 0.70
spooferSetupFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected