
PicoBlocks - Reference
12
Blocks Summary
This list shows all of the basic blocks in PicoBlocks.
setlight
color
sets the light’s color
setlight
power
sets the light’s power
light
off
turns the light off
display
displays a value on the display
chirp
makes the Cricket chirp
note
plays a note (pitch and duration)
play
sound
Kitten
plays a sound
set
inst
Piano
sets an instrument for
the next note or melody
set
tempo
set
volume
sets the tempo or volume
for the next note, melody
or rhythm
motor
on
motor
off
turns motor on or off
motor
onfor
turns the motor on for a certain
period of time
reverse
reverses the motor’s direction
this
way
that
way
sets the motor’s direction
set
power
sets the motor’s power
touch?
reports true if the touch sensor is
pressed
brightness
reports a value from the light
sensor
loud?
reports true if the sound sensor
detects a loud sound
loudness
reports a value from the sound
sensor
connected?
reports true if the resistance sensor
detects a resistance of 0
resistance
reports a value from the
resistance sensor
beamIR
beams a value to another Cricket
IR
reports a value beamed by
infrared from another Cricket
newIR?
reports true if another Cricket has
beamed a new value by infrared
timer
reports the Cricket’s timer value
in 100ths of a second
reset
timer
sets the Cricket’s timer to 0
wait
waits a number of ticks (where 10
ticks = 1 second)
waituntil
waits until the condition is true
forever
repeats a block or stack
forever
repeat
repeats a block or stack
a certain number of times
if
then
runs a block or stack if the
condition is true
if
then
else
if condition
is true, run one
stack; if not, run
the other stack
stopall
stops everything
stack
stop
stops this stack