Uncomment CAN

This commit is contained in:
Midgard 2022-03-17 22:48:26 +01:00
parent 2e548997f8
commit b14ca65bae
Signed by: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -25,7 +25,7 @@ void setup() {
Serial.begin(115200); Serial.begin(115200);
Serial.println("Needy finetuner by Midgard"); Serial.println("Needy finetuner by Midgard");
/*obus_module::setup(OBUS_TYPE_NEEDY, OBUS_NEEDY_ID_DEVELOPMENT);*/ obus_module::setup(OBUS_TYPE_NEEDY, 0);
pinMode(PIN_GAUGE, OUTPUT); pinMode(PIN_GAUGE, OUTPUT);
pinMode(PIN_LED, OUTPUT); pinMode(PIN_LED, OUTPUT);
@ -72,7 +72,7 @@ int ledPattern(int32_t timeLeft, int16_t target, int16_t sliderValue) {
int ledCycle = 0; int ledCycle = 0;
void loop() { void loop() {
/*bool is_message_valid = obus_module::loopNeedy(&message, callback_game_start, callback_game_stop);*/ bool is_message_valid = obus_module::loopNeedy(&message, callback_game_start, callback_game_stop);
int16_t sliderValue = (getSliderValue() + previousSliderValue) / 2; int16_t sliderValue = (getSliderValue() + previousSliderValue) / 2;
previousSliderValue = getSliderValue(); previousSliderValue = getSliderValue();