Skip to content

Commit 25ee7b5

Browse files
authored
Updated some syntax
1 parent 608dc26 commit 25ee7b5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

GameConsole/GameConsole.ino

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ uint16_t joystickLeftButton;
2323
uint16_t joystickRightY;
2424
uint16_t joystickRightX;
2525
uint16_t joystickRightButton;
26-
uint8_t button = 7;
26+
const uint8_t button = 7;
2727
bool joystickBothUp;
2828
bool joystickBothDown;
2929
bool joystickBothLeft;
@@ -33,19 +33,19 @@ bool buttonstatus = false;
3333

3434

3535
//Initialising the matrices
36-
const uint8_t matrixPin = 6;
37-
const uint8_t matrixWidth = 8;
38-
const uint8_t matrixHeight = 8;
36+
const uint8_t matrixPIN = 6;
37+
const uint8_t matrixWIDTH = 8;
38+
const uint8_t matrixHEIGHT = 8;
3939
const uint8_t matrixTilesX = 2;
4040
const uint8_t matrixTilesY = 1;
4141

4242
//Standard variables for maybe later use
43-
const uint8_t totalWidth = matrixWidth * matrixTilesX;
44-
const uint8_t totalHeight = matrixHeight * matrixTilesY;
43+
const uint8_t totalWidth = matrixWIDTH * matrixTilesX;
44+
const uint8_t totalHeight = matrixHEIGHT * matrixTilesY;
4545
const uint8_t totalPixels = totalWidth * totalHeight;
4646
uint8_t matrixBrightness = 5;
4747

48-
Adafruit_NeoMatrix matrix = Adafruit_NeoMatrix(matrixWidth, matrixHeight, matrixTilesY, matrixTilesX, matrixPin,
48+
Adafruit_NeoMatrix matrix = Adafruit_NeoMatrix(matrixWIDTH, matrixHEIGHT, matrixTilesY, matrixTilesX, matrixPIN,
4949
NEO_TILE_TOP + NEO_TILE_LEFT + NEO_TILE_ROWS + NEO_TILE_PROGRESSIVE +
5050
NEO_MATRIX_TOP + NEO_MATRIX_LEFT + NEO_MATRIX_COLUMNS + NEO_MATRIX_PROGRESSIVE,
5151
NEO_GRB + NEO_KHZ800);

0 commit comments

Comments
 (0)