|
|
|
@ -65,7 +65,6 @@
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
static uint8_t _oledbuffer[OLED_BUFSIZE];
|
|
|
|
|
static bool is_debug_link = 0;
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* macros to convert coordinate to bit position
|
|
|
|
@ -181,7 +180,7 @@ void oledInit() {
|
|
|
|
|
void oledClear() { memzero(_oledbuffer, sizeof(_oledbuffer)); }
|
|
|
|
|
|
|
|
|
|
void oledInvertDebugLink() {
|
|
|
|
|
if (is_debug_link) {
|
|
|
|
|
#if DEBUG_LINK
|
|
|
|
|
oledInvertPixel(OLED_WIDTH - 5, 0);
|
|
|
|
|
oledInvertPixel(OLED_WIDTH - 4, 0);
|
|
|
|
|
oledInvertPixel(OLED_WIDTH - 3, 0);
|
|
|
|
@ -197,7 +196,7 @@ void oledInvertDebugLink() {
|
|
|
|
|
oledInvertPixel(OLED_WIDTH - 2, 3);
|
|
|
|
|
oledInvertPixel(OLED_WIDTH - 1, 3);
|
|
|
|
|
oledInvertPixel(OLED_WIDTH - 1, 4);
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
@ -232,11 +231,6 @@ void oledRefresh() {
|
|
|
|
|
|
|
|
|
|
const uint8_t *oledGetBuffer() { return _oledbuffer; }
|
|
|
|
|
|
|
|
|
|
void oledSetDebugLink(bool set) {
|
|
|
|
|
is_debug_link = set;
|
|
|
|
|
oledRefresh();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void oledSetBuffer(uint8_t *buf) {
|
|
|
|
|
memcpy(_oledbuffer, buf, sizeof(_oledbuffer));
|
|
|
|
|
}
|
|
|
|
|