The above video doesn't pick up the colour change clearly though the red/green switch can be seen in the reflection in the screen.
from microbit import *
while True:
pin0.write_digital(1)
sleep(1000)
pin0.write_digital(0)
pin8.write_digital(1)
sleep(1000)
pin8.write_digital(0)