adafruit / Adafruit_CircuitPython_AVRprog

program AVR chips right from CircuitPython!
MIT License
31 stars 20 forks source link

Add ATtiny13a support #10

Closed aaronaverill closed 5 years ago

aaronaverill commented 5 years ago

Added support for ATtiny13a flashing. Added common board definition class constants to simplify user code examples.

ladyada commented 5 years ago

ok please check travis! next up, is there a way people can DIY their own definition so they dont have to edit the boards list in avrprog.py?

aaronaverill commented 5 years ago

next up, is there a way people can DIY their own definition so they dont have to edit the boards list in avrprog.py?

Yup, same as before, people can create an arbitrary mapping for chip properties in their program and pass it to the avrprog methods. I've simply extracted the 3(+1) common examples into a class constant that can be referenced with a one-liner instead of copy/paste.

ladyada commented 5 years ago

ok leave ne of them in so people knw how to do it, because now there is no example

aaronaverill commented 5 years ago

M'kay. It's a legit point since people will be using avrprog mpy and not looking at the source outside the examples and the convenience of pre-defined chips makes it look a bit "black magic" even if it's making 95% of the use cases easier :)

Added an example to the mega2560 and provided link to avrdude.conf file in version control.

ladyada commented 5 years ago

thank uuuuu!

ladyada commented 5 years ago

@caternuson plz bump release :)