add dead joystick
This commit is contained in:
@ -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());
|
||||
|
@ -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"
|
||||
|
Reference in New Issue
Block a user