I wanted to play with some Arduino code on my Arduboy and none of 
the stuff in our tree worked.  I could hack it together by manually 
updating the EEPROM library and pointing the Makefile at the 
Arduboy2 library, but it's not very clean.

This updates the devel/arduino port to 1.8.7 and incorporates the 
new split of ArduinoCore-avr 1.6.23.  I'm including it as a tarball 
instead of a diff because you also have to blow away files/ and 
patches/.

There is a new port of Arduino-Makefile, which is a project which 
works like the custom Makefile that we currently ship in 
devel/arduino/files/Makefile but it's cross-platform and won't be 
something we need to keep updating ourselves.  The only downside is 
that project will require gmake now.

There's also a port of arduboy2, which is a 3rd party library for 
doing graphics things on this board.

With all of these updates, I was able to compile a random .ino file 
for the Arduboy by just creating a Makefile:

    BOARD_TAG = leonardo
    include /usr/local/share/arduino-makefile/Arduino.mk

and compiling with 'gmake'.  arduino-makefile automatically detected 
and used the updated EEPROM and 3rd party Arduboy2 libraries.

I was also able to flash it with 'gmake upload' which used the 
included python script to reboot the Arduboy into its bootloader and 
then upload it with avrdude.  It's all very user-friendly now.

I don't know what others are doing with Arduino stuff on OpenBSD so 
I'd like to know if any of this stuff works for you or if I've just 
gotten lucky with the Arduboy.

Attachment: arduboy2.tar.gz
Description: application/tar-gz

Attachment: arduino-makefile.tar.gz
Description: application/tar-gz

Attachment: arduino.tar.gz
Description: application/tar-gz

Reply via email to