The Code
link: https://makecode.com/_7KC5FH4fPXjm
LED actuator would need a digital write block. This means that the CPX will set the voltage of the pin to HIGH (3.3Volts) or LOW (0 volts). . So, here we check if button B is pressed, if so, then we are giving the actuator pin a high signal. We can then use this voltage to turn on an LED.