RoboBlocky
Sign In
Learning Math/CS/STEAM with Robotics
Grid Size: S M L Simple View: MinView:

Set up the Arduino with LED and joystick and then click the  Run  button. Move the joystick forward and backward to slide the brightness of the blue LED up and down. Press the joystick button to end. Once it's working, add a print block to the loop code that will print the brightness value during each iteration.

(You may also want to change the delay value from 0.1 seconds to 0.5 seconds. Note also that, depending on the calibration of the joystick, the midpoint value of the joystick may be slightly different from 128, the midpoint of the range from 0 to 255.)

Piano
Blocks
Workspace Load Save C Prompt C Console
Lock
roboblockyA16517.ch
Time