mirror of https://github.com/rusefi/rusefi-1.git
26 lines
484 B
C++
26 lines
484 B
C++
/**
|
|
* @file buttonshift.cpp
|
|
* @brief Polls pins for gear changes
|
|
*
|
|
* @date Aug 31, 2020
|
|
* @author David Holdeman, (c) 2020
|
|
*/
|
|
#pragma once
|
|
|
|
#include "gear_controller.h"
|
|
#include "globalaccess.h"
|
|
#include "debounce.h"
|
|
|
|
class ButtonShiftController: public GearControllerBase {
|
|
public:
|
|
ButtonShiftController();
|
|
|
|
void update() override;
|
|
void init() override;
|
|
private:
|
|
ButtonDebounce debounceUp;
|
|
ButtonDebounce debounceDown;
|
|
};
|
|
|
|
void initButtonShift();
|