mirror of
https://github.com/lucysrausch/hoverboard-firmware-hack.git
synced 2025-08-01 00:24:28 +02:00
ADD: buzzer, undervoltage lockout, safe poweroff, foo
This commit is contained in:
@@ -13,10 +13,10 @@
|
||||
#define PWM_FREQ 16000 // PWM frequency in Hz
|
||||
#define DEAD_TIME 32 // PWM deadtime
|
||||
|
||||
#define DC_CUR_LIMIT 5 // Motor DC current limit in amps
|
||||
#define DC_CUR_LIMIT 32 // Motor DC current limit in amps
|
||||
|
||||
#define DEBUG_SERIAL_SERVOTERM
|
||||
//#define DEBUG_SERIAL_ASCII
|
||||
//#define DEBUG_SERIAL_SERVOTERM
|
||||
#define DEBUG_SERIAL_ASCII
|
||||
#define DEBUG_BAUD 115200 // UART baud rate
|
||||
//#define DEBUG_I2C_LCD
|
||||
|
||||
|
@@ -114,6 +114,9 @@
|
||||
#define OFF_PIN GPIO_PIN_5
|
||||
#define OFF_PORT GPIOA
|
||||
|
||||
#define BUTTON_PIN GPIO_PIN_1
|
||||
#define BUTTON_PORT GPIOA
|
||||
|
||||
#define CHARGER_PIN GPIO_PIN_12
|
||||
#define CHARGER_PORT GPIOA
|
||||
|
||||
|
Reference in New Issue
Block a user