obono / ArduinoX2PAV

16×16-dotted pixel art viewer with Arduino Nano and Unicorn HAT HD.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Arduino X2PAV (Hexadeca-Squared Pixel Art Viewer)

Description

16×16-dotted pixel art viewer with Arduino Nano and Unicorn HAT HD.

Picture

You can switch the animation by pressing button. The screen is turned off automatically after idling for 30 seconds, and it resumes by pressing button.

Hardware

Components

Circuit diagram

Circuit diagram

Software MIT Licensed

Build and transfer

Clone the source code and open the project file "ArduinoX2PAV.ino" with Arduino IDE.

You can build the source code with following configuration.

  • Board: "Arduino Nano"
  • Processor: "ATmega328P (Old Bootloader)"

Then, you can transfer binary data to Arduino Nano by usual way.

Append new scenario

You can design new scenario using Arduino X2PAV Scenario Editor.

This tool outputs a header file as scenario data.

To append the scenario you designed, edit "ArduinoX2PAV.ino".

  • Include the header file.
  • Add SEQUENCE_DATA macro to the sequences[] array.
 #include "data/sample1.h"
 #include "data/sample2.h"
 #include "data/sample3.h"
+#include "data/foo.h"

     (ellipsis)

 PROGMEM static const SEQUENCE_T sequences[] = {
     SEQUENCE_DATA(sample1),
     SEQUENCE_DATA(sample2),
     SEQUENCE_DATA(sample3),
+    SEQUENCE_DATA(foo),
     NULL
 };

License

These codes are licensed under MIT License.

About

16×16-dotted pixel art viewer with Arduino Nano and Unicorn HAT HD.

License:MIT License


Languages

Language:C 51.9%Language:C++ 48.1%