I'm pretty new to Arduino but I have experience with other electronic hardwares so I understand the principle of most of it (how to wire etc...) but I'm not sure how to program it to receive more-or-less digital inputs just to turn on/off some LEDs.
Each axis is just a potentiometer- see how to program one in the IDE: File > Examples > Analog > AnalogInOutSerial which actually uses the pot's input to PWM a motor... For two axes, use two analog pins and double up the code, ensuring you use different variables like sensorValueX and sensorValueY.
The push switch is just a switch... mine has a pull down resistor built-in so its active high; read it on a digital pin as shown in the IDE: File > Examples > Basics > DigitalReadSerial
Okay, I though I was all good, turns out I'm not; what I'm trying to do is control a RGB LED, the B is linked with the X-axis the G with the Y, and the R is supposed to be linked with the Z-axis, the problem is that the Z-axis is a digital input so I am trying to increment brightness with each press. I've tried a couple ways but they haven't worked, any ideas?
Thanks!