Peataí Digiteach part 1

This week we designed part 1 of our digital pet using the BBC Microbit

We used the Microsoft Make code editor to build our program

First we have a sleepy face and a little jingle when the Microbit switches on

We then created a variable called Time to keep track of how many seconds have passed

When 10 seconds have passed our pets face turns sad and plays a little jingle

However if we shake the Microbit, it resets the clock to zero and makes our pets face happy

Have a look at the full code below and test it out

Previous
Previous

Buille faoi thuairim an uimhir

Next
Next

Ealaín Dhigiteach