prepare EEPROM and logic funcs

This commit is contained in:
2024-09-08 22:20:30 +03:00
parent 962333bfec
commit 400ee6dee0
7 changed files with 241 additions and 105 deletions

View File

@ -11,6 +11,13 @@
#include "pca9685.h"
#include "EEPROM.h"
typedef enum ServoMap{
SERVO_AXIAL = 0,
SERVO_HORIZONTAL = 1,
SERVO_VERTICAL = 2
}ServoMap;
void doShot(Shot*);
void doShotForever(uint8_t number);
@ -20,7 +27,9 @@ uint8_t prepareShot(uint8_t number);
void startShooting();
void stopShooting();
void setPos();
void setPos(uint8_t axial, uint8_t horizontal, uint8_t vertical);
void setPosDefault();
// 0 .. 100