add dead joystick

This commit is contained in:
2023-09-05 20:02:25 +02:00
parent abbeda177d
commit 0329c762a0
4 changed files with 7 additions and 1 deletions

View File

@ -59,7 +59,7 @@ void Factory_build() {
ALIVE_onSetup(ALjoy(), CM_JOY_SETUP, NULL);
ALIVE_setAliveTime(ALjoy(), KART_CST.JOYSTICK_ALIVE_TIME);
//ALIVE_onBorn(ALjoy(), LED_on, l1());
//ALIVE_onDead(ALjoy(), LED_off, l1());
ALIVE_onDead(ALjoy(), deadJoystick, NULL);
//DRIVE_onRun(drive(), LED_on, l2());
//DRIVE_onDead(drive(), LED_off, l2());

View File

@ -17,6 +17,7 @@
#include "../eeprom.h"
#include "../drive.h"
#include "../steering.h"
#include "../kartculator.h"
#include "../../board/led/led.h"
#include "../../board/button/button.h"
#include "../../middleware/alive.h"