Controlling the LeScratch peripherals