Skip to content

Instantly share code, notes, and snippets.

@v-ivanyshyn
v-ivanyshyn / xy
Last active January 4, 2020 13:49
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)
#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,