
How to write code and load binary file into arduino
[arduino] Starting arduino
Download following arduino code and compile it.
Arduino Source Code
Download following arduino code and compile it.
Raspberry Pi Source Code
gcc main.c -o main
./main 1
pi@raspberrypi ~/test $ ./a.out 1
I2C: Connecting
I2C: acquiring buss to 0x4
Sending 1
Received 1
Reference:
- Arduino 1.0.6
- Raspberry Pi and Arduino Connected Using I2C
- Connecting an Arduino to a Raspberry PI using I2C
- Connect Raspberry Pi to Arduino with I2C Interface
- I2C communication between a RPI and a Arduino
- DS1621 with Raspberry Pi/ArchLinuxARM
- Control your light at home with a Raspberry Pi and Olimex’s MOD-IO2
0 意見:
張貼留言