diff --git a/load.sh b/load.sh old mode 100644 new mode 100755 index d7e130d..59faf58 --- a/load.sh +++ b/load.sh @@ -1,7 +1,14 @@ +#!/bin/sh + wget -N -P ./ http://houplin.studserv.deule.net/~grouille/PROJET/upload/binaire.c wget -N -P ./ http://houplin.studserv.deule.net/~grouille/PROJET/upload/sensor.xml wget -N -P ./ http://houplin.studserv.deule.net/~grouille/PROJET/upload/demande.txt -gcc -o binaire binaire.c -lwiringPi -./blink -./binaire +gcc -o program program.c -lwiringPi +./program + +cp binaire.c Build/main.c +cd Build +make clean +make upload +#avrdude -p atmega328p -C ~/avrdude_gpio.conf -c pi_3 -v -U flash:w:build-uno/Build.hex diff --git a/rpiToArduino.py b/rpiToArduino.py old mode 100644 new mode 100755 index 998c81e..b111b57 --- a/rpiToArduino.py +++ b/rpiToArduino.py @@ -1,6 +1,6 @@ #!/usr/bin/env python import serial -ser = serial.Serial('/dev/ttyACM0, 9600); +ser = serial.Serial('/dev/ttyACM0', 9600) while 1: - print(ser.readline()) \ No newline at end of file + print(ser.readline()) -- libgit2 0.21.2