This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void loop() | |
{ | |
int x = analogRead(X_PIN); | |
int y = analogRead(Y_PIN); | |
if (х < 20 && y < 20) | |
digitalWrite(pin9, LOW); | |
else | |
digitalWrite(pin9, HIGH); | |
if (х > 1000 && y > 1000) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ILI9341_t3.h> // https://github.com/PaulStoffregen/ILI9341_t3 | |
struct CanData { | |
uint32_t id; | |
uint8_t len; | |
uint8_t data[8] __attribute__((aligned(8))); | |
}; | |
int CAN_IDS[] = { | |
0x050, |