How i write multiple float data to Arduino from Rpi as master via i2c?
问题 I read many post how Rpi receives float data via Arduino via i2c, with Rpi as master. But i need write floats values to arduino and i don't found any example. I want to use python smbus. Any one have a example? Thanks a lot! 回答1: After many tests, i can exchange multiple data between arduino as slave and Raspberry pi3 as master. Arduino code: #include <Wire.h> byte data[12]; int command; typedef struct processData{ float temp1; float temp2; float temp3; float temp4; float vazao_quente; float