How the Black Mage's Eyes work part 3 by DukeofDummies, journal
How the Black Mage's Eyes work part 3
Now that we have the code and the LEDs, we need to talk about the controls.
I've been pushing this off big time because explaining how to do this well is hard. Really it's going to take practice, because with my current version I have 17 expressions that can be called at will and that is a lot to take in. I started off with five, and that wasn't enough. I upped it to nine, which was better, but I was just one expression short of what I really wanted, and when I added a system to add the 10th expression I had 7 other spaces left to fill so... I added a lot.
The general outline is I have six buttons total. 4 are on top that work like a Dpad,
How the Black Mage's eyes work Part 2 by DukeofDummies, journal
How the Black Mage's eyes work Part 2
Next, we're moving to the code.
https://github.com/dukeofdummies/BlackMageEyes/blob/master/README.md
The link above is to the code (github is the best way to share code) If you want to take a look at the code I go into detail there. but I'll dig a little deeper into Adafruit's neopixels here and try to be a bit more beginner friendly.
If you've done any work with simple LEDs in the past you might know that getting patterns is... tricky.
If we look at the example below, we have 3 green LEDs with 2 different ways to wire them. Let's say we want to turn off the first LED.
If we shut off the first LED if we wire them in series... we shut off
How the Black Mage's eyes work by DukeofDummies, journal
How the Black Mage's eyes work
Well with Anime Detour officially over and a very successful test of the new eyes, I thought it's about time to to give people a rundown on how it works, what I used, and a peek behind the code. The code is going up onto Github, but I wanted to see if I couldn't get the wiring diagrams and parts list here, because I think it's a bit more user friendly. And infinitely better formatted than 20 Facebook posts.
First off, List of materials used.
https://www.adafruit.com/product/3634 One strip of side glow Neopixel LEDs. Really any set of Neopixels should work the same, this strip as of April 2019 has the highest pixels per inch though.
One old