The Bulb, like many other output devices, is simple to program and control. It works similarly to the LED or Buzzer; you just need to program when to turn the Crumble’s outputs on or off. The main difference is that the Bulb needs to be run from the higher-output motor pads (1 or 2). Even so, they are just as simple to program as other Crumbs.
Connecting the bulb to the Crumble via the motor pads is easy. One end needs to connect to a + motor output, and the other needs to connect to the – motor output.
Note: Don’t forget you will need to add batteries.
These blocks will turn your bulb on and off.
This code will simply turn the Bulb on, wait one second, turn it off for another second and repeat.
This is the end result!