amperka / ino

Command line toolkit for working with Arduino hardware
http://inotool.org
MIT License
1.08k stars 233 forks source link

Add GitHub and download support #198

Open samighi opened 9 years ago

samighi commented 9 years ago

I have partially complete (not committed) a way to ino {download} code.

this combines Github and ability to use avrdude to download memory and a repository brach hash.

This is partially working, but requires a bit of expertise to complete. a) it would require minor changes to Arudino headers and code to store the version # OR have INO just add the code (which I am doing) b) it requires some expertise for github. I am able to store locally, but I want to distribute code globally. If someone grabs the Arduino I give them, they could retrieve the code (and libraries) that go with it

How can I get help to complete this work?

===== Code ============

===== BUILD process =====

ion build

ZZZ_1.0src/d.ino_Sep_14_2014_11_55_10ZZZ Commiting to GIT ... ZZZ_1.0src/d.ino_Sep_14_2014_11_55_10ZZZ pi /home/pi/arduinogit/.git . fatal: pathspec 'lib/*' did not match any files [master 0c59dbc] AUTOCOMMIT 1 file changed, 3 insertions(+), 3 deletions(-)

======= Download ========

ion download

pi@raspberrypi ~/t5 $ ino download Guessing serial port ... /dev/ttyACM0 atmega328p ['/usr/share/arduino/hardware/tools/avrdude', '-C', '/usr/share/arduino/hardware/tools/avrdude.conf', '-p', 'atmega328p', '-P', '/dev/ttyACM0', '-c', 'arduino', '-b', '115200', '-U', 'flash:r:./download.hex:i']

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e950f avrdude: reading flash memory:

Reading | ################################################## | 100% 5.09s

avrdude: writing output file "./download.hex"

avrdude: safemode: Fuses OK

avrdude done. Thank you.

ZZZ_1.0src/d.ino_Sep_14_2014_11_55_10ZZZ Getting GIT ... still work in progress