top of page

Brightness Levels

  • Writer: Jessi Cruz
    Jessi Cruz
  • Sep 9, 2019
  • 1 min read

I made a game in which you press both buttons at the same time to increase the LED brightness level back to default (255). As you rise the level, the symbol on the micro:bit changes to show when you reach 125 brightness level, as well as the orange LED turning on. Finally, the animation changes for the last time once you reach max brightness level and both LEDs are turned on. If you press only the A button, it resets the brightness level, however you need to press it twice to turn off the LEDs also. But the animation does not restart and I could not figure out how to restart it.

Recent Posts

See All
Final Project: SnakeDodge

https://editor.p5js.org/jisojc/sketches/JD5ABmlI- My final project was initially going to be a top-down shooter using a different p5...

 
 
 
Youtube COPPA Algorithm

https://www.theverge.com/2019/11/13/20963459/youtube-google-coppa-ftc-fine-settlement-youtubers-new-rules Youtube was fined a large sum...

 
 
 
Interactive Ball

Code: var brushSize; var BallX; var BallY; var ballSize; var xSpeed; var ySpeed; var bColor; function setup() { // put setup code here...

 
 
 

Comments


© 2023 by The Artifact. Proudly created with Wix.com

bottom of page