Skip to content

Latest commit

 

History

History
43 lines (36 loc) · 893 Bytes

README.md

File metadata and controls

43 lines (36 loc) · 893 Bytes

libgame

Game library for Arduino and LED display 64x64

This project uses Adafruit-like display: https://learn.adafruit.com/32x16-32x32-rgb-led-matrix

It requires the following Arduino connections:

Display-Arduino

  • R1 - 2
  • G1 - 3
  • B1 - 4
  • R2 - 5
  • G2 - 6
  • B2 - 7
  • A - A0
  • B - A1
  • C - A2
  • D - A3
  • LAT - 10
  • CLK - 8
  • OE - 9

Buttons are connected via 74165, NES joystick is connected to (CLOCK, LATCHJ, SER)

  • CLOCK - 11
  • LATCHB - 12
  • LATCHJ - 13
  • DATA - A4

The display is logically split into two parts with separate controllers. Lower part of display is connected through the upper one with the cable as follows:

LLLLUUUU
LLLLUUUU

Therefore this is logically 128x32 display. Arduino shifts 128 pixels into display registers at every iteration.

Demonstration of the working prototype: https://www.youtube.com/watch?v=gy7oADJboqM

Tutorial

See game/Template.cpp