// Version 8, 09.04.2023 #include #include #include #define MOSI 11 #define MISO 12 #define SPICLOCK 13 #define CS 4 //CS byte clr; byte clr1; LiquidCrystal_I2C lcd(0x27, 20, 4); //Zuweisen Adresse (0x27); 20 (Stellen); 4 (Zeilen) byte counterStart = 131; // alternative: 6 unsigned int scaleFactor = 250; // alternative: 1000 //char spi_transfer(volatile char data) unsigned char spi_transfer(char data) { SPDR = data; // Start the transmission while (!(SPSR & (1<