Commit 0ebed0a24aa83ce8f30aaa28c108b10514a0041e

Authored by grouille
1 parent 89de38a4

MAJ Fichier

Showing 2 changed files with 12 additions and 5 deletions   Show diff stats
load.sh 100644 → 100755
  1 +#!/bin/sh
  2 +
1 wget -N -P ./ http://houplin.studserv.deule.net/~grouille/PROJET/upload/binaire.c 3 wget -N -P ./ http://houplin.studserv.deule.net/~grouille/PROJET/upload/binaire.c
2 wget -N -P ./ http://houplin.studserv.deule.net/~grouille/PROJET/upload/sensor.xml 4 wget -N -P ./ http://houplin.studserv.deule.net/~grouille/PROJET/upload/sensor.xml
3 wget -N -P ./ http://houplin.studserv.deule.net/~grouille/PROJET/upload/demande.txt 5 wget -N -P ./ http://houplin.studserv.deule.net/~grouille/PROJET/upload/demande.txt
4 -gcc -o binaire binaire.c -lwiringPi  
5 -./blink  
6 -./binaire  
7 6
  7 +gcc -o program program.c -lwiringPi
  8 +./program
  9 +
  10 +cp binaire.c Build/main.c
  11 +cd Build
  12 +make clean
  13 +make upload
  14 +#avrdude -p atmega328p -C ~/avrdude_gpio.conf -c pi_3 -v -U flash:w:build-uno/Build.hex
rpiToArduino.py 100644 → 100755
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 import serial 3 import serial
4 -ser = serial.Serial('/dev/ttyACM0, 9600); 4 +ser = serial.Serial('/dev/ttyACM0', 9600)
5 while 1: 5 while 1:
6 - print(ser.readline())  
7 \ No newline at end of file 6 \ No newline at end of file
  7 + print(ser.readline())