Closed casychow closed 3 years ago
Talked to the professor on piazza.
Found out that we do not need to do anything to “enable I2C” to use the OLED (we didn’t in the lab, after all). After rebooting the Pi and immediately running the test_subsystem.py file without doing anything else, the code worked.
"GPIO 11 is the clock pin for SPI. At boot, it is correctly set in ALT0 mode (along with the other SPI pins), because you enabled SPI in raspi-config. But you can’t let other parts of your code change that pin to a GPIO input or output - you need it to stay in ALT0 mode for SPI to work!"