casychow / DesktopPet_Eui

A small, mobile desk robot that helps alleviate the physical, emotional, and mental problems frequently faced by desk workers. This is my NYU Tandon Senior Design Project.
0 stars 0 forks source link

SPI and I2C bus are not working simultaneously #19

Closed casychow closed 3 years ago

casychow commented 3 years ago
casychow commented 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!"