项目作者: obono

项目描述 :
16×16-dotted pixel art viewer with Arduino Nano and Unicorn HAT HD.
高级语言: C
项目地址: git://github.com/obono/ArduinoX2PAV.git
创建时间: 2019-04-19T13:20:01Z
项目社区:https://github.com/obono/ArduinoX2PAV

开源协议:MIT License

下载


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

" class="reference-link">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.
  1. #include "data/sample1.h"
  2. #include "data/sample2.h"
  3. #include "data/sample3.h"
  4. +#include "data/foo.h"
  5. (ellipsis)
  6. PROGMEM static const SEQUENCE_T sequences[] = {
  7. SEQUENCE_DATA(sample1),
  8. SEQUENCE_DATA(sample2),
  9. SEQUENCE_DATA(sample3),
  10. + SEQUENCE_DATA(foo),
  11. NULL
  12. };

License

These codes are licensed under MIT License.