Readers like you help support MUO. When you make a purchase using links on our site, we may earn an affiliate commission. Read More.
I have a LED cube (5x5x5) and if I want to put 6 buttons (like a joystick) on my Arduino, to control all three directions (x,y,z), what part of code I will change, and how?! Thank you! :)
2013-06-11 13:12:34
I assume you're referring to the tutorial I wrote? Did you read my follow up? http://www.makeuseof.com/tag/programming-arduino-4x4x4-led-cube-awesome-stuff/The problem with adding inputs is that we don't any IO pins left on the arduino - they've all been used to multiplex the cube. So we'd have to make some fundamental changes, such as adding separate LED driver chips, if we want to add a control scheme. Or use an Arduino Mega, which has more pins.