The arduino code says 'showChessboardMarkings' was not declared in this scope
'lightUpMove' was not declared in this scope
Any help would be appreciated
//v27 adding ability to start a new game
#include <Adafruit_GFX.h>
#include <Adafruit_NeoMatrix.h>
#include <Adafruit_NeoPixel.h>
//setup control panel LEDs
#define controlPanelLED_PIN 4
#define controlPanelLED_COUNT 22
Adafruit_NeoPixel controlPanelLED(controlPanelLED_COUNT, controlPanelLED_PIN, NEO_GRB + NEO_KHZ800);
//chessboard LEDs
Adafruit_NeoMatrix chessboardLEDS = Adafruit_NeoMatrix(8, 8, A5,
NEO_MATRIX_BOTTOM + NEO_MATRIX_RIGHT + //either top left or bottom right
NEO_MATRIX_ROWS + NEO_MATRIX_ZIGZAG,
NEO_GRB + NEO_KHZ800);
const uint16_t colors[] = {
chessboardLEDS.Color(255, 0, 0), chessboardLEDS.Color(0, 255, 0), chessboardLEDS.Color(0, 0, 255) };
const int inputButtons[] = {3,5,6,7,8,9,10,11,12,A1};
const int buttonDebounceTime = 300;
int currentBoard[8][8]; //an array to track the current state of the board
String piStarted = "No";
String humansMove;
String pisMove;
String pisSuggestedBestMove;
String gameMode = "0"; // can be either 'Stockfish' or 'OnlineHuman' once set
String colourChoice; // can be either 'black' or 'white'
bool legalOrNot;
// Color definitions
#define BLACK 0x0000
#define BLUE 0x001F
#define RED 0xF800
#define GREEN 0x07E0
#define CYAN 0x07FF
#define ORANGE 0xFC00
#define MAGENTA 0xF81F
#define YELLOW 0xFFE0
#define WHITE 0xFFFF
uint32_t cpWHITE = controlPanelLED.Color(255, 255, 255);
uint32_t cpDimWHITE = controlPanelLED.Color(10, 10, 10);
uint32_t cpBLACK = controlPanelLED.Color(0, 0, 0);
void setup() {
// put your setup code here, to run once:
pinMode(LED_BUILTIN, OUTPUT);
Serial.begin(9600);
//setup the buttons for inputting moves
for (int i=0; i<10; i++) //the less then value needs to represent how many buttons we are using for this to complete enough loops
{
pinMode(inputButtons[i], INPUT_PULLUP);
}
//setup the hint interupt pin
attachInterrupt(digitalPinToInterrupt(3), hint, FALLING);
setUpBoard();
//setup for the control panels neopixels
controlPanelLED.begin(); // INITIALIZE NeoPixel strip object (REQUIRED)
controlPanelLED.show(); // Turn OFF all pixels ASAP
controlPanelLED.setBrightness(255); // Set BRIGHTNESS (max = 255)
//setup for chessboard neopixels
chessboardLEDS.begin();
chessboardLEDS.setTextWrap(false);
chessboardLEDS.setBrightness(255);
chessboardLEDS.setTextColor(colors[0]);
chessboardLEDS.show();
waitForPiToStart();
setUpGame();
showChessboardMarkings();
}
void loop() {
// put your main code here, to run repeatedly:
humansMove = humansGo();
sendToPi(humansMove, "M");
printBoard();
lightUpMove(humansMove,'Y');
Serial.println("Lighting up move");
legalOrNot = checkPiForError();
Serial.println("Checking legality");
if (legalOrNot == false ){
// do nothing and start the human request again
Serial.println("Move discarded, please return the pieces and try another move");
printBoard();
} else {
Serial.println("Move is legal");
updateBoard(humansMove);
printBoard();
showChessboardMarkings();
pisMove = receiveMoveFromPi();