From 0ebed0a24aa83ce8f30aaa28c108b10514a0041e Mon Sep 17 00:00:00 2001 From: grouille Date: Mon, 20 Jan 2020 14:25:37 +0100 Subject: [PATCH] MAJ Fichier --- load.sh | 13 ++++++++++--- rpiToArduino.py | 4 ++-- 2 files changed, 12 insertions(+), 5 deletions(-) mode change 100644 => 100755 load.sh mode change 100644 => 100755 rpiToArduino.py 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