Wednesday, December 23, 2009

NES Arduino - Palette Test

video

The code is the same for the first controller port, the arduino/pot is in the second. I'm using 4 bits from the potentiometer and putting them into the lower nibble (hue) of the first color in the background palette. I set the intensity to 1, so if you look at the '10' row and read left to right, you should see the colors in the same order.



I guess the next step is to design an enclosure with a couple of pots/sliders for stuff like this. I got my CD4021's from digikey today, I should have enough for a handful of boards. I'm still trying to think of other things that could benefit from an analog input.

2 comments: