While the Raspberry Pi has very good support for an I2C bus, a lot of very cool chips – including the in system programmer for just about every ATtiny and ATmega microcontroller – use an SPI bus.
This example demonstrates SPI communication on Red Pitaya using loopback mode. In loopback configuration, the MOSI (Master Out Slave In) pin is connected to MISO (Master In Slave Out) pin, allowing ...
# - raw_accelerometer, raw_magnetic - return 3 values and time_stamp # - raw_gyro - returnn 3 values, Celsius, and time_stamp # Update required each loop to check if any sensor updated, print sensor ...