Just like I usually start, I looked at the codes we had written in class and attempted to elaborate on them. I began with the code for an external button switching on an off an LED light. From there I added icons that correlated with the on and off lights. These were a large heart when the light was on and a small heart when the button was off. I attempting taking it a step further with incorporating the speaker. This got a bit difficult for me. I tried putting two different sounds for both the light on and off modes but the noise kept going on and on too frequently and wouldn't stop. I tried adjusting and trying different things. In the end, I settled for just a sound when the heart is large and light is on and added a pause for two seconds to keep the sound from repeating too frequently.
https://makecode.microbit.org/_Rkvi5Ua82it9
Comments