added blink() function and mapped the joystick like the potentiometer