steering-wheel/src/18stw.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
632 B
C++
Raw Normal View History

#include <Arduino.h>
#include <DueTimer.h>
#include <EDIPTFT.h>
#include <FT18_STW_DISPLAY.h>
2021-07-17 20:09:02 +02:00
#include <FT18_STW_INIT.h>
#include <FT_2018_STW_CAN.h>
#include <RotaryEncoder.h>
2021-07-17 20:09:02 +02:00
#include <due_can.h>
#include "debug.h"
2021-07-17 20:09:02 +02:00
void setup() {
set_pins();
Serial.begin(9600);
2021-07-17 20:09:02 +02:00
// Serial.println("Hi");
Init_Can_0();
init_display();
2021-07-17 20:09:02 +02:00
}
void loop() {
// read_buttons(); //in Send_0x110() aufgerufen
// read_rotary(); //in Send_0x110() aufgerufen
// Send_0x110(); //alle 10 ms als interrupt aufgerufen
update_LED();
update_display();
if (Serial.available() > 0 && Serial.read() == 'd') {
print_dumped_faults();
}
2021-07-17 20:09:02 +02:00
}