Skip to content
Snippets Groups Projects
Commit 399b31ff authored by 0xPIT's avatar 0xPIT
Browse files

change image data to be unsigned

parent 59e3d475
No related branches found
No related tags found
No related merge requests found
...@@ -90,10 +90,10 @@ void OLEDDisplayUi::setIndicatorPosition(IndicatorPosition pos) { ...@@ -90,10 +90,10 @@ void OLEDDisplayUi::setIndicatorPosition(IndicatorPosition pos) {
void OLEDDisplayUi::setIndicatorDirection(IndicatorDirection dir) { void OLEDDisplayUi::setIndicatorDirection(IndicatorDirection dir) {
this->indicatorDirection = dir; this->indicatorDirection = dir;
} }
void OLEDDisplayUi::setActiveSymbol(const char* symbol) { void OLEDDisplayUi::setActiveSymbol(const unsigned char* symbol) {
this->activeSymbol = symbol; this->activeSymbol = symbol;
} }
void OLEDDisplayUi::setInactiveSymbol(const char* symbol) { void OLEDDisplayUi::setInactiveSymbol(const unsigned char* symbol) {
this->inactiveSymbol = symbol; this->inactiveSymbol = symbol;
} }
......
...@@ -61,11 +61,11 @@ enum FrameState { ...@@ -61,11 +61,11 @@ enum FrameState {
}; };
const char ANIMATION_activeSymbol[] PROGMEM = { const unsigned char ANIMATION_activeSymbol[] PROGMEM = {
0x00, 0x18, 0x3c, 0x7e, 0x7e, 0x3c, 0x18, 0x00 0x00, 0x18, 0x3c, 0x7e, 0x7e, 0x3c, 0x18, 0x00
}; };
const char ANIMATION_inactiveSymbol[] PROGMEM = { const unsigned char ANIMATION_inactiveSymbol[] PROGMEM = {
0x00, 0x0, 0x0, 0x18, 0x18, 0x0, 0x0, 0x00 0x00, 0x0, 0x0, 0x18, 0x18, 0x0, 0x0, 0x00
}; };
...@@ -106,8 +106,8 @@ class OLEDDisplayUi { ...@@ -106,8 +106,8 @@ class OLEDDisplayUi {
IndicatorPosition indicatorPosition = BOTTOM; IndicatorPosition indicatorPosition = BOTTOM;
IndicatorDirection indicatorDirection = LEFT_RIGHT; IndicatorDirection indicatorDirection = LEFT_RIGHT;
const char* activeSymbol = ANIMATION_activeSymbol; const unsigned char* activeSymbol = ANIMATION_activeSymbol;
const char* inactiveSymbol = ANIMATION_inactiveSymbol; const unsigned char* inactiveSymbol = ANIMATION_inactiveSymbol;
bool shouldDrawIndicators = true; bool shouldDrawIndicators = true;
...@@ -240,12 +240,12 @@ class OLEDDisplayUi { ...@@ -240,12 +240,12 @@ class OLEDDisplayUi {
/** /**
* Set the symbol to indicate an active frame in the indicator bar. * Set the symbol to indicate an active frame in the indicator bar.
*/ */
void setActiveSymbol(const char* symbol); void setActiveSymbol(const unsigned char* symbol);
/** /**
* Set the symbol to indicate an inactive frame in the indicator bar. * Set the symbol to indicate an inactive frame in the indicator bar.
*/ */
void setInactiveSymbol(const char* symbol); void setInactiveSymbol(const unsigned char* symbol);
// Frame settings // Frame settings
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment