Microbit Schedule (Cont.)

My code for the timer-planner is as follows-

let minutes = 0
input.onButtonPressed(Button.A, function () {
if (minutes < 60) {
minutes += 10
basic.showNumber(minutes)
basic.clearScreen()
}
})
input.onButtonPressed(Button.B, function () {
while (minutes > 0) {
basic.showNumber(minutes)
basic.pause(60000)
minutes += 0 – 1
}
})
input.onGesture(Gesture.Shake, function () {
if (minutes < 60) {
minutes += 1
basic.showNumber(minutes)
basic.clearScreen()
}
})
basic.forever(function () {
})
The only improvement that I think could help, is an alarm. This will be added shortly. However, the timer is fully functional, giving you the option to add 10 minutes or 1, going up to 2 hours.

Microbit Idea

My idea for the microbit coding project is actually pretty basic. I am going to try and make a schedule. Although the idea may seem simple, as I think about it, I realize that this may be more difficult than originally presumed, due to the need to do it one Microbit. Originally, I was going to make a sort of planner. However, I have now decided to make a type of timer. To do this, I will only need a simple code with a timer that is changeable, and when runs out beeps. This helps solve the scheduling problem by the owner gaining the ability to time the length of their activities, and time when the next activity is.