Skip to content

Instantly share code, notes, and snippets.

View Saader's full-sized avatar

Saad Saader

  • France
View GitHub Profile
@Saader
Saader / RxRpi.py
Created June 11, 2019 08:43
sends floating values from an arduino to a rpi via i2c
import struct
import smbus
import time
# for RPI version 1, use "bus = smbus.SMBus(0)"
bus = smbus.SMBus(1)
# This is the address we setup in the Arduino Program
address = 0x04