# NeoTrellis Game

## Overview

https://youtu.be/ytr_AzqjuaE

## Project Overview

The NeoTrellis is controlled by the Adafruit Feather M0 Express via Circuit Python. An LED push button acts as an input. Toggle switch for powering the circuit on and off. This basic set of parts is all we need to build a little game project. This uses slightly modified demo code from the NeoTrellis guide. Special thanks to [John Park](https://learn.adafruit.com/users/johnpark) and [Kirby Griese Jr](https://learn.adafruit.com/users/Keebie81).&nbsp;

![3d_printing_hero-parts-2.jpg](https://cdn-learn.adafruit.com/assets/assets/000/063/239/medium640/3d_printing_hero-parts-2.jpg?1539044655)

## DIY NeoTrellis Game

Color matching games are fun and easy to play. This project plays on the basic concept and makes use of the full color NeoPixel LEDs. On start, a single pixel will light up in a random color. Press all of the buttons and try to match the first color. Random colors will be triggered the more you press buttons. Match all buttons to the first color to win! Press and hold the push button to reset.&nbsp;

![3d_printing_hero-neotrellis.jpg](https://cdn-learn.adafruit.com/assets/assets/000/063/137/medium640/3d_printing_hero-neotrellis.jpg?1538925704)

Using the Adafruit Feather M0 Express, we employ a 1200mAh lithium polymer battery to make this portable – Recharge the battery over USB. An LED metal push button is used to reset the game. A mini toggle switch is used to power on the game on and off. All of the electronics are housed in a snap fit 3D printed case.&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/063/071/medium800/3d_printing_parts.jpg?1538747349)

## Parts List

Components used to build this project.

- [Adafruit NeoTrellis 4x4 Button PCB](https://www.adafruit.com/product/3954)
- [Silicone Elastomer 4x4 Button Keypad](https://www.adafruit.com/product/1611)
- [Adafruit Feather M0 Express](https://www.adafruit.com/product/3403)
- [1200mAh lipo battery](https://www.adafruit.com/product/258)
- [16mm panel mount button](https://www.adafruit.com/product/1445)
- (optional upgrade) [16mm Metal Push button](https://www.adafruit.com/product/559)
- [Mini Toggle Switch](https://www.adafruit.com/product/3221)

## Hardware + Supplies

Wires, connectors, and hardware screws.

- [Silicone cover stranded-core ribble cable](https://www.adafruit.com/product/3890)
- [Male and Female JST Connectors](http://a.co/d/cpAMuPw)
- [Heat Shrink Tubing](https://www.adafruit.com/product/1649)
- 4x [M2.5 x 5mm metric machine screws](https://www.albanycountyfasteners.com/2-5-MM-x-45-Phillips-Flat-Head-Machine-Screw-p/1011-1002.htm)

## Tools

List of handy things to assist in any project.

- [Wire Strippers](https://www.adafruit.com/product/527)
- [Wire Cutters](https://www.adafruit.com/product/152)
- [Soldering Iron](https://www.adafruit.com/product/180)
- [Solder Wire](https://www.adafruit.com/product/734)
- [Panavise Jr.](https://www.adafruit.com/product/151)
- [Third Helping Hands](https://www.adafruit.com/product/291)
- [Monoprice Inventor II](https://www.adafruit.com/product/3897)

## Prerequisite Guides

If you're new to Adafruit Feather M0 Express, CircuitPython or soldering, take a moment to walk through the following guides to get you started.

- [Adafruit Feather M0 Express Intro](https://learn.adafruit.com/adafruit-feather-m0-express-designed-for-circuit-python-circuitpython)
- [Adafruit NeoTrellis Intro](https://learn.adafruit.com/adafruit-neotrellis)
- [Welcome to Circuit Python](https://learn.adafruit.com/welcome-to-circuitpython)
- [Adafruit's Guide to Excellent Soldering](https://learn.adafruit.com/adafruit-guide-excellent-soldering?view=all)

- [Next Page](https://learn.adafruit.com/neotrellis-box-game/circuit-diagram.md)

## Featured Products

### Adafruit NeoTrellis RGB Driver PCB for 4x4 Keypad

[Adafruit NeoTrellis RGB Driver PCB for 4x4 Keypad](https://www.adafruit.com/product/3954)
By popular request, we've upgraded our popular Trellis elastomer button kits to now have a PCB with _full color NeoPixel_ support! You heard that right, no more single-color LEDs, you can now have any color you like under the fantastic rubbery button pads we sell.

These 4x4...

Out of Stock
[Buy Now](https://www.adafruit.com/product/3954)
[Related Guides to the Product](https://learn.adafruit.com/products/3954/guides)
### Silicone Elastomer 4x4 Button Keypad - for 3mm LEDs

[Silicone Elastomer 4x4 Button Keypad - for 3mm LEDs](https://www.adafruit.com/product/1611)
So squishy! These silicone elastomer keypads are just waiting for your fingers to press them. Go ahead, squish all you like! (They're durable and easy to clean, just wipe with mild soap and water) These are just like the light up rubber buttons you find on stuff like appliances and tools,...

In Stock
[Buy Now](https://www.adafruit.com/product/1611)
[Related Guides to the Product](https://learn.adafruit.com/products/1611/guides)
### Adafruit Feather M0 Express

[Adafruit Feather M0 Express](https://www.adafruit.com/product/3403)
At the Feather M0's heart is an ATSAMD21G18 ARM Cortex M0+ processor, clocked at 48 MHz and at 3.3V logic, the same one used in the new&nbsp;[Arduino Zero](https://www.adafruit.com/products/2843). This chip has a whopping 256K of FLASH (8x more than the Atmega328 or 32u4) and...

Out of Stock
[Buy Now](https://www.adafruit.com/product/3403)
[Related Guides to the Product](https://learn.adafruit.com/products/3403/guides)
### Lithium Ion Polymer Battery - 3.7v 1200mAh

[Lithium Ion Polymer Battery - 3.7v 1200mAh](https://www.adafruit.com/product/258)
Lithium-ion polymer (also known as 'lipo' or 'lipoly') batteries are thin, light, and powerful. The output ranges from 4.2V when completely charged to 3.7V. This battery has a capacity of 1200mAh for a total of about 4.5 Wh. If you need a larger battery, <a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/258)
[Related Guides to the Product](https://learn.adafruit.com/products/258/guides)
### 16mm Panel Mount Momentary Pushbutton -  Red

[16mm Panel Mount Momentary Pushbutton -  Red](https://www.adafruit.com/product/1445)
OK, this item is pretty simple - it's a panel mount pushbutton. It's not that exciting, no LEDs, no bells & whistles. But we really like it anyways – look at that lovely rounded shape, that elegant bevel. If you're going to go with a momentary pushbutton, let it be this...

In Stock
[Buy Now](https://www.adafruit.com/product/1445)
[Related Guides to the Product](https://learn.adafruit.com/products/1445/guides)
### Rugged Metal Pushbutton with Red LED Ring

[Rugged Metal Pushbutton with Red LED Ring](https://www.adafruit.com/product/559)
These chrome-plated metal buttons are rugged&nbsp;and look real good while doing it! Simply drill a 16mm hole into any material up to 1/2" thick and you can fit these in place, there's even a rubber gasket to keep water out of the enclosure. On the front of the button is a flat metal...

In Stock
[Buy Now](https://www.adafruit.com/product/559)
[Related Guides to the Product](https://learn.adafruit.com/products/559/guides)
### Mini Panel Mount SPDT Toggle Switch

[Mini Panel Mount SPDT Toggle Switch](https://www.adafruit.com/product/3221)
This or that, one or the other, perhaps or perhaps not! So hard to make decisions these days without feeling like you're just going back and forth constantly. Deciding whether or not to use this mini toggle switch? That's the easiest decision you'll make all day!

This...

In Stock
[Buy Now](https://www.adafruit.com/product/3221)
[Related Guides to the Product](https://learn.adafruit.com/products/3221/guides)

## Related Guides

- [Adafruit Feather M0 Express](https://learn.adafruit.com/adafruit-feather-m0-express-designed-for-circuit-python-circuitpython.md)
- [Adafruit NeoTrellis](https://learn.adafruit.com/adafruit-neotrellis.md)
- [Extending CircuitPython: An Introduction](https://learn.adafruit.com/extending-circuitpython.md)
- [AdaBox 010](https://learn.adafruit.com/adabox010.md)
- [Dotstar Featherwing in CircuitPython](https://learn.adafruit.com/dotstar-featherwing-in-circuitpython.md)
- [MP3 Feather - Gordon Cole](https://learn.adafruit.com/mp3-feather-gordon-cole.md)
- [Adding an Accelerometer to your FeatherWing Crickit](https://learn.adafruit.com/adding-an-accelerometer-to-you-cricket-featherwing.md)
- [NeoTrellis MIDI Feedback Controller](https://learn.adafruit.com/neotrellis-midi-feedback-controller.md)
- [Wireless NeoPixel Controller](https://learn.adafruit.com/neotrellis-neopixel-controller.md)
- [CircuitPython Hardware: PCA9685 DC Motor & Stepper Driver](https://learn.adafruit.com/micropython-hardware-pca9685-dc-motor-and-stepper-driver.md)
- [CircuitPython Hardware: Charlieplex LED Matrix](https://learn.adafruit.com/micropython-hardware-charlieplex-led-matrix.md)
- [Portable Trellis Sound Board](https://learn.adafruit.com/portable-trellis-sound-board.md)
- [Trellis M4 Audio Filter Visualizer](https://learn.adafruit.com/trellis-m4-audio-visualizer-and-filter.md)
- [FlappyBird Game for NeoTrellis M4 in CircuitPython](https://learn.adafruit.com/circuitpython-neotrellism4-flappybird.md)
- [Using MPL3115A2 with CircuitPython](https://learn.adafruit.com/using-mpl3115a2-with-circuitpython.md)
- [CircuitPython 101: Basic Builtin Data Structures](https://learn.adafruit.com/basic-datastructures-in-circuitpython.md)
- [Stand-alone programming AVRs using CircuitPython](https://learn.adafruit.com/stand-alone-programming-avrs-using-circuitpython.md)
