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

Function updateDisplay

VScode Platformio/src/spoofer.cpp:71–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69
70
71void updateDisplay() {
72 u8g2.clearBuffer();
73
74 // Display device type
75 u8g2.setFont(u8g2_font_profont11_tf);
76 u8g2.drawStr(0, 10, "Device:");
77 int x = 0;
78 int y = 25;
79
80
81 switch (deviceType) {
82 case 1:
83 u8g2.drawStr(x, y, "[ Airpods ]");
84 break;
85 case 2:
86 u8g2.drawStr(x, y, "[ Airpods Pro ]");
87 break;
88 case 3:
89 u8g2.drawStr(x, y, "[ Airpods Max ]");
90 break;
91 case 4:
92 u8g2.drawStr(x, y, "[ Airpods Gen 2 ]");
93 break;
94 case 5:
95 u8g2.drawStr(x, y, "[ Airpods Gen 3 ]");
96 break;
97 case 6:
98 u8g2.drawStr(x, y, "[ Airpods Gen 2 ]");
99 break;
100 case 7:
101 u8g2.drawStr(x, y, "[ PowerBeats ]");
102 break;
103 case 8:
104 u8g2.drawStr(x, y, "[ PowerBeats Pro ]");
105 break;
106 case 9:
107 u8g2.drawStr(x, y, "[ Beats Solo Pro ]");
108 break;
109 case 10:
110 u8g2.drawStr(x, y, "[ Beats Buds ]");
111 break;
112 case 11:
113 u8g2.drawStr(x, y, "[ Beats Flex ]");
114 break;
115 case 12:
116 u8g2.drawStr(x, y, "[ BeatsX ]");
117 break;
118 case 13:
119 u8g2.drawStr(x, y, "[ Beats Solo3 ]");
120 break;
121 case 14:
122 u8g2.drawStr(x, y, "[ Beats Studio3 ]");
123 break;
124 case 15:
125 u8g2.drawStr(x, y, "[ Beats StudioPro ]");
126 break;
127 case 16:
128 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