/* this sketch randomly turns on one of the connected LEDs (see the array 'ledPin') and it also turns on a motor connected to a PWM output (see the ing 'motorPin') to a randomized strenth */ int ledPin[] = {5, 6, 7, 8, 9, 10}; // choose the pin for the LED int LED_PIN_NUM = 6; int motorPin = 11; int inputPin = 2; // choose the input pin (for a pushbutton) int val = 0; // variable for reading the pin status int ledNum = 0; int motorPow = 0; void setup() { Serial.begin(9600); int k = 0; for (k=0;k