Make screen buffer static & frame vars protected

This commit is contained in:
Scott Allen 2016-06-30 19:59:56 -04:00
parent 3b96b7ba24
commit d17075f7be
2 changed files with 12 additions and 9 deletions

View File

@ -6,6 +6,8 @@
//========== class Arduboy2Base ==========
//========================================
uint8_t Arduboy2Base::sBuffer[(HEIGHT*WIDTH)/8];
Arduboy2Base::Arduboy2Base()
{
// frame management

View File

@ -211,14 +211,6 @@ public:
*/
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
uint16_t rawADC(uint8_t adc_bits);
@ -227,7 +219,16 @@ protected:
void sysCtrlSound(uint8_t buttons, uint8_t led, uint8_t eeVal);
// 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;
};