First working multiplayer version

This commit is contained in:
Phew
2026-02-11 23:20:46 +01:00
parent 08686e0fd6
commit a11da1b3d8
7 changed files with 284 additions and 163 deletions

View File

@@ -1,5 +1,5 @@
#ifndef SETTINGS_H
#define SETTINGS_H
#define SETTINGS_H
#include <EEPROM.h>
#include "sound.h"
@@ -12,7 +12,7 @@
#define EEPROM_SIZE 256
// LEDS
#define NUM_LEDS 144
#define NUM_LEDS 288
#define MIN_LEDS 60
@@ -34,10 +34,16 @@ const uint8_t LIVES_PER_LEVEL = 3; // default lives per level
#define MIN_ATTACK_THRESHOLD 20000
#define MAX_ATTACK_THRESHOLD 30000
#define leftButtonPinNumber 26
#define rightButtonPinNumber 18
#define upButtonPinNumber 19
#define downButtonPinNumber 23
#define leftButtonPinNumber1 5
//define rightButtonPinNumber1 6
#define upButtonPinNumber1 6
#define downButtonPinNumber1 7
#define leftButtonPinNumber2 1
//define rightButtonPinNumber 2
#define upButtonPinNumber2 3
#define downButtonPinNumber2 4
#define DEFAULT_JOYSTICK_DEADZONE 8 // Angle to ignore
@@ -49,7 +55,7 @@ const uint8_t LIVES_PER_LEVEL = 3; // default lives per level
#define MIN_VOLUME 0
#define MAX_VOLUME 255
#define DAC_AUDIO_PIN 25 // should be 25 or 26 only
#define DAC_AUDIO_PIN 20 // should be 25 or 26 only
enum ErrorNums{
ERR_SETTING_NUM,