Josiah Densmore
Published © GPL3+

"Microlator" (Micro:Bit Calculator)

"Microlator" a basic calculator useing BBC Micro:Bit

BeginnerWork in progress18 minutes44
"Microlator" (Micro:Bit Calculator)

Things used in this project

Story

Read more

Schematics

microbit-screenshot_CqpqKTEN68.png

Code

JS Code

JavaScript
input.onButtonPressed(Button.A, function () {
    A += 1
    basic.showNumber(A)
})
input.onButtonPressed(Button.AB, function () {
    basic.clearScreen()
    basic.showString("" + A + "+" + B + "=" + (A + B))
    ResetNum()
})
function ResetNum () {
    A = 0
    B = 0
}
input.onButtonPressed(Button.B, function () {
    B += 1
    basic.showNumber(B)
})
let B = 0
let A = 0
A = 0
B = 0

Code

Credits

Josiah Densmore

Josiah Densmore

4 projects • 5 followers

Comments