mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Use tabs instead of spaces
This commit is contained in:
@@ -102,10 +102,10 @@ public:
|
|||||||
static void drawHeatSymbol(uint8_t state);
|
static void drawHeatSymbol(uint8_t state);
|
||||||
static void drawScrollIndicator(uint8_t p, uint8_t h); // Draws a scrolling position indicator
|
static void drawScrollIndicator(uint8_t p, uint8_t h); // Draws a scrolling position indicator
|
||||||
static void transitionSecondaryFramebuffer(bool forwardNavigation);
|
static void transitionSecondaryFramebuffer(bool forwardNavigation);
|
||||||
static void useSecondaryFramebuffer(bool useSecondary);
|
static void useSecondaryFramebuffer(bool useSecondary);
|
||||||
private:
|
private:
|
||||||
static void drawChar(char c); // Draw a character to a specific location
|
static void drawChar(char c); // Draw a character to a specific location
|
||||||
static void setFramebuffer(uint8_t *buffer);
|
static void setFramebuffer(uint8_t *buffer);
|
||||||
static const uint8_t* currentFont;// Pointer to the current font used for rendering to the buffer
|
static const uint8_t* currentFont;// Pointer to the current font used for rendering to the buffer
|
||||||
static uint8_t* firstStripPtr; // Pointers to the strips to allow for buffer having extra content
|
static uint8_t* firstStripPtr; // Pointers to the strips to allow for buffer having extra content
|
||||||
static uint8_t* secondStripPtr; //Pointers to the strips
|
static uint8_t* secondStripPtr; //Pointers to the strips
|
||||||
@@ -115,7 +115,7 @@ private:
|
|||||||
static int16_t cursor_x, cursor_y;
|
static int16_t cursor_x, cursor_y;
|
||||||
static uint8_t displayOffset;
|
static uint8_t displayOffset;
|
||||||
static uint8_t screenBuffer[16 + (OLED_WIDTH * 2) + 10]; // The data buffer
|
static uint8_t screenBuffer[16 + (OLED_WIDTH * 2) + 10]; // The data buffer
|
||||||
static uint8_t secondFrameBuffer[OLED_WIDTH * 2];
|
static uint8_t secondFrameBuffer[OLED_WIDTH * 2];
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* OLED_HPP_ */
|
#endif /* OLED_HPP_ */
|
||||||
|
|||||||
@@ -194,11 +194,11 @@ void OLED::transitionSecondaryFramebuffer(bool forwardNavigation) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void OLED::useSecondaryFramebuffer(bool useSecondary) {
|
void OLED::useSecondaryFramebuffer(bool useSecondary) {
|
||||||
if (useSecondary) {
|
if (useSecondary) {
|
||||||
setFramebuffer(secondFrameBuffer);
|
setFramebuffer(secondFrameBuffer);
|
||||||
} else {
|
} else {
|
||||||
setFramebuffer(NULL);
|
setFramebuffer(NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void OLED::setRotation(bool leftHanded) {
|
void OLED::setRotation(bool leftHanded) {
|
||||||
|
|||||||
Reference in New Issue
Block a user