jbobrow / Move38-Arduino-Platform

Custom board definitions for the Arduino IDE

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Move38 Blinks for the Arduino IDE

An Arduino core for the Blinks gaming tile. More info at... http://move38.com

This core requires at least Arduino IDE v1.6.2, where v1.6.5+ is recommended.

Programmers

Since there is no bootloader in a tile, all code must be programmed rather than downloaded.

You can use any AVR programmer supported by AVRDUDE and the Arduino IDE.

Just connect your programmer and select it in the "Programmers" menu, and connect the 6-pin ISP to the tile. If you do not have a programmer, you can also use an Arduino and a couple of wires. More detailed instructions to come.

You can then use the "Sketch-Upload to Programmer" menu choice or just press the Play button to compile your code and program it into the connected tile. (Both the menu option and the button do the same thing with a tile.)

How to install

Click on the "Download ZIP" button in the upper right corner of this repo. Extract the ZIP file, and move the extracted files to the location "~/Documents/Arduino/hardware/Move38-manual/avr". Create the folder if it doesn't exist. This readme file should be located at "~/Documents/Arduino/hardware/Move38-manual/avr/README.md" when you are done.

Open Arduino IDE, and a new category in the boards menu called "Move38-manual" will show up.

In the future, we'll offer a simplified Arduino Boards Manager install path.

Notes

  • We called the "vendor/maintainer" folder Move38-manual so that you can also use the boards manager and you will be able to tell the two apart in the boards menu.

  • You must manually create the avr folder and you must also manually move the files out from this repo into this folder. We could not automatically have the folds inside the repo match the Arduino required folder layout because in in the boards manager, the architecture is in the JSON file rather than the folder structure. Arg.

  • The "~/Documents/Arduino/hardware/Move38-manual/avr" folder is a Git repo and is also set up for easy editing in Atmel Studio with a solution inside the \AS7 sub-folder.

Getting started with Move38 Blinks on Arduino

  • Open the Tools > Board menu item, and select Blinks from the Move38 submenu.
  • Select what kind of programmer you're using under the Programmers menu.
  • Select "File->Examples->Examples for Blink Tile" and choose "HelloBlink".
  • Hit the Play button.

The IDE should compile the code and program the Blinks tile... and you should see pretty blinking lights!

Digging Deeper

Hardware Abstraction Layer

Most programmers will want to use the high level blinks API, but if you want to get closer to the hardware you can directly call into the HAL (Hardware Abstraction Layer) that the blinks API is built on top of. Documentation for this layer is in the README.md in the cores/blinkscore folder.

About

Custom board definitions for the Arduino IDE

License:Other


Languages

Language:C++ 89.0%Language:C 11.0%