top of page
Search

Boolean and Buttons

  • Stephanie Hernandez
  • Sep 16, 2019
  • 1 min read

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

 
 
 

Recent Posts

See All
Homework assignment 13

Amazon in 2014 had implemented an algorithm with the hopes of simplifying their recruiting process. This new hiring algorithm was meant...

 
 
 

Comments


© 2023 by NOMAD ON THE ROAD. Proudly created with Wix.com

  • b-facebook
  • Twitter Round
  • Instagram Black Round
bottom of page