mirror of https://github.com/MLXXXp/Arduboy2.git
remove another unused variable
This commit is contained in:
parent
59c143af2f
commit
a591ce7705
|
@ -1,10 +1,8 @@
|
||||||
#include "core.h"
|
#include "core.h"
|
||||||
|
|
||||||
// need to redeclare these here since we declare them static in .h
|
// need to redeclare these here since we declare them static in .h
|
||||||
volatile uint8_t *ArduboyCore::mosiport,
|
volatile uint8_t *ArduboyCore::csport, *ArduboyCore::dcport;
|
||||||
*ArduboyCore::csport, *ArduboyCore::dcport;
|
uint8_t ArduboyCore::cspinmask, ArduboyCore::dcpinmask;
|
||||||
uint8_t ArduboyCore::mosipinmask,
|
|
||||||
ArduboyCore::cspinmask, ArduboyCore::dcpinmask;
|
|
||||||
|
|
||||||
const uint8_t PROGMEM pinBootProgram[] = {
|
const uint8_t PROGMEM pinBootProgram[] = {
|
||||||
// buttons
|
// buttons
|
||||||
|
@ -29,57 +27,57 @@ const uint8_t PROGMEM lcdBootProgram[] = {
|
||||||
// Further reading: https://www.adafruit.com/datasheets/SSD1306.pdf
|
// Further reading: https://www.adafruit.com/datasheets/SSD1306.pdf
|
||||||
//
|
//
|
||||||
// Display Off
|
// Display Off
|
||||||
// 0xAE,
|
// 0xAE,
|
||||||
|
|
||||||
// Set Display Clock Divisor v = 0xF0
|
// Set Display Clock Divisor v = 0xF0
|
||||||
// default is 0x80
|
// default is 0x80
|
||||||
0xD5, 0xF0,
|
0xD5, 0xF0,
|
||||||
|
|
||||||
// Set Multiplex Ratio v = 0x3F
|
// Set Multiplex Ratio v = 0x3F
|
||||||
// 0xA8, 0x3F,
|
// 0xA8, 0x3F,
|
||||||
|
|
||||||
// Set Display Offset v = 0
|
// Set Display Offset v = 0
|
||||||
// 0xD3, 0x00,
|
// 0xD3, 0x00,
|
||||||
|
|
||||||
// Set Start Line (0)
|
// Set Start Line (0)
|
||||||
// 0x40,
|
// 0x40,
|
||||||
|
|
||||||
// Charge Pump Setting v = enable (0x14)
|
// Charge Pump Setting v = enable (0x14)
|
||||||
// default is disabled
|
// default is disabled
|
||||||
0x8D, 0x14,
|
0x8D, 0x14,
|
||||||
|
|
||||||
// Set Segment Re-map (A0) | (b0001)
|
// Set Segment Re-map (A0) | (b0001)
|
||||||
// default is (b0000)
|
// default is (b0000)
|
||||||
0xA1,
|
0xA1,
|
||||||
|
|
||||||
// Set COM Output Scan Direction
|
// Set COM Output Scan Direction
|
||||||
0xC8,
|
0xC8,
|
||||||
|
|
||||||
// Set COM Pins v
|
// Set COM Pins v
|
||||||
// 0xDA, 0x12,
|
// 0xDA, 0x12,
|
||||||
|
|
||||||
// Set Contrast v = 0xCF
|
// Set Contrast v = 0xCF
|
||||||
0x81, 0xCF,
|
0x81, 0xCF,
|
||||||
|
|
||||||
// Set Precharge = 0xF1
|
// Set Precharge = 0xF1
|
||||||
0xD9, 0xF1,
|
0xD9, 0xF1,
|
||||||
|
|
||||||
// Set VCom Detect
|
// Set VCom Detect
|
||||||
// 0xDB, 0x40,
|
// 0xDB, 0x40,
|
||||||
|
|
||||||
// Entire Display ON
|
// Entire Display ON
|
||||||
// 0xA4,
|
// 0xA4,
|
||||||
|
|
||||||
// Set normal/inverse display
|
// Set normal/inverse display
|
||||||
// 0xA6,
|
// 0xA6,
|
||||||
|
|
||||||
// Display On
|
// Display On
|
||||||
0xAF,
|
0xAF,
|
||||||
|
|
||||||
// set display mode = horizontal addressing mode (0x00)
|
// set display mode = horizontal addressing mode (0x00)
|
||||||
0x20, 0x00,
|
0x20, 0x00,
|
||||||
|
|
||||||
// set col address range
|
// set col address range
|
||||||
// 0x21, 0x00, COLUMN_ADDRESS_END,
|
// 0x21, 0x00, COLUMN_ADDRESS_END,
|
||||||
|
|
||||||
// set page address range
|
// set page address range
|
||||||
|
@ -311,7 +309,7 @@ uint8_t ArduboyCore::getInput()
|
||||||
uint8_t ArduboyCore::buttonsState()
|
uint8_t ArduboyCore::buttonsState()
|
||||||
{
|
{
|
||||||
uint8_t buttons;
|
uint8_t buttons;
|
||||||
|
|
||||||
// using ports here is ~100 bytes smaller than digitalRead()
|
// using ports here is ~100 bytes smaller than digitalRead()
|
||||||
#ifdef AB_DEVKIT
|
#ifdef AB_DEVKIT
|
||||||
// down, left, up
|
// down, left, up
|
||||||
|
@ -328,6 +326,6 @@ uint8_t ArduboyCore::buttonsState()
|
||||||
// B (right)
|
// B (right)
|
||||||
buttons = buttons | (((~PINB) & B00010000) >> 2);
|
buttons = buttons | (((~PINB) & B00010000) >> 2);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return buttons;
|
return buttons;
|
||||||
}
|
}
|
||||||
|
|
|
@ -291,8 +291,8 @@ protected:
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
volatile static uint8_t *mosiport, *csport, *dcport;
|
volatile static uint8_t *csport, *dcport;
|
||||||
uint8_t static mosipinmask, cspinmask, dcpinmask;
|
uint8_t static cspinmask, dcpinmask;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue