mirror of https://github.com/MLXXXp/Arduboy2.git
Make screen buffer static & frame vars protected
This commit is contained in:
parent
3b96b7ba24
commit
d17075f7be
|
@ -6,6 +6,8 @@
|
||||||
//========== class Arduboy2Base ==========
|
//========== class Arduboy2Base ==========
|
||||||
//========================================
|
//========================================
|
||||||
|
|
||||||
|
uint8_t Arduboy2Base::sBuffer[(HEIGHT*WIDTH)/8];
|
||||||
|
|
||||||
Arduboy2Base::Arduboy2Base()
|
Arduboy2Base::Arduboy2Base()
|
||||||
{
|
{
|
||||||
// frame management
|
// frame management
|
||||||
|
|
|
@ -211,14 +211,6 @@ public:
|
||||||
*/
|
*/
|
||||||
int cpuLoad();
|
int cpuLoad();
|
||||||
|
|
||||||
uint8_t frameRate;
|
|
||||||
uint16_t frameCount;
|
|
||||||
uint8_t eachFrameMillis;
|
|
||||||
long lastFrameStart;
|
|
||||||
long nextFrameStart;
|
|
||||||
bool post_render;
|
|
||||||
uint8_t lastFrameDurationMs;
|
|
||||||
|
|
||||||
/// useful for getting raw approximate voltage values
|
/// useful for getting raw approximate voltage values
|
||||||
uint16_t rawADC(uint8_t adc_bits);
|
uint16_t rawADC(uint8_t adc_bits);
|
||||||
|
|
||||||
|
@ -227,7 +219,16 @@ protected:
|
||||||
void sysCtrlSound(uint8_t buttons, uint8_t led, uint8_t eeVal);
|
void sysCtrlSound(uint8_t buttons, uint8_t led, uint8_t eeVal);
|
||||||
|
|
||||||
// Screen buffer
|
// Screen buffer
|
||||||
uint8_t sBuffer[(HEIGHT*WIDTH)/8];
|
static uint8_t sBuffer[(HEIGHT*WIDTH)/8];
|
||||||
|
|
||||||
|
// For frame funcions
|
||||||
|
uint8_t frameRate;
|
||||||
|
uint16_t frameCount;
|
||||||
|
uint8_t eachFrameMillis;
|
||||||
|
long lastFrameStart;
|
||||||
|
long nextFrameStart;
|
||||||
|
bool post_render;
|
||||||
|
uint8_t lastFrameDurationMs;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue