This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//#define CALIBRATE | |
//#define GRID // After Calibration this mode should plot a pretty good dot grid on the screen | |
// Adjust these values for servo arms in position for state 1 _| | |
const double SERVO_LEFT_ZERO = 1600; | |
const double SERVO_RIGHT_SCALE = 690;// + makes rotate further left | |
// Adjust these values for servo arms in position for state 2 |_ | |
const double SERVO_RIGHT_ZERO = 650; | |
const double SERVO_LEFT_SCALE = 650; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Keypad.h> | |
#include <EEPROM.h> | |
#include "Arduino.h" | |
#include "SoftwareSerial.h" | |
#include "DFRobotDFPlayerMini.h" | |
const byte COLS = 4; //4 Columns | |
const byte ROWS = 4; //4 Rows | |
char hexaKeys[ROWS][COLS] = { | |
{4,3,2,1}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SoftwareSerial.h> | |
#define BT_Baud 57600 | |
#define BT_BaudFallback 9600 | |
#define BT_Cmd_Delay 2000 //1000 is okay, until HC-06-20190901 | |
SoftwareSerial BT(8, 7); | |
long baud = 0; | |
uint8_t btVersion = 0xFF; |