// When the microbit runs. function onStart( ) { while (true) { microbit.writePinDigital(1, microbit.readPinDigital(0)); wait(100); } }