I2C and SPI
2023
Arduino.
I2C
Project #1: LCD thermometer
Read the temperature from the TC74
Display the temperature on LCD display
– Save the temperature reading
– byte tempreading = Wire.read();
– Clear the display: lcd.clear();
– Need to call in the Loop() function to clear the display
SPI
Project #2: Display X, Y and Z
Show X , Y, Z of Magnetometer on LCD
– Hints: the register addresses of X, Y, Z are adjacent.
– If the reading is -0.01 and not changing, check the wires are connected to the right pins for MI, MO and SCK.