rusefi-1/firmware/hw_layer/sensors/joystick.h

24 lines
424 B
C
Raw Normal View History

2015-07-10 06:01:56 -07:00
/**
* @file joystick.h
*
* @date Jan 2, 2015
2020-01-07 21:02:40 -08:00
* @author Andrey Belomutskiy, (c) 2012-2020
2015-07-10 06:01:56 -07:00
*/
#pragma once
2015-07-10 06:01:56 -07:00
2018-09-16 19:26:57 -07:00
#include "global.h"
2015-07-10 06:01:56 -07:00
typedef enum {
JB_CENTER = 0,
JB_BUTTON_A = 1,
2018-12-12 15:02:00 -08:00
// not used so far JB_BUTTON_B = 2,
// not used so far JB_BUTTON_C = 3,
2015-07-10 06:01:56 -07:00
JB_BUTTON_D = 4,
} joystick_button_e;
void onJoystick(joystick_button_e button);
void initJoystick(Logging *shared);
void startJoystickPins();
void stopJoystickPins();