Skip to content

dwilches/micro-bit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Code samples for the BBC micro:bit

I got a micro:bit for reviewing an add-on called wear:it, while doing the review I created some small programs, which you can find in the src folder of this repository.

The review can be found here: micro:bit wear:it Development Kit - Review

The API reference I used for creating these programs can be found here: BBC micro:bit MicroPython

Some recommendations

  • Use mu-editor for uploading the code to the micro:bit but programming on it is not as nice as programming in PyCharm (which shows you syntax error for example), so what I kept doing was programming in PyCharm and only using mu-editor to flash my program into the micro:bit.
  • Use microrepl for quickly testing code snippets. When testing how a module from the API works, instead of flashing your program into the micro:bit you can use microrepl which speeds the testing process.

Source contents

  • doggy-music. Can be attached to a dog's costume to play music when the dog sits for a picture, and stops when the dog stands up or is walking. Check the dog costume here.

  • beating-heart. Shows a heart in the micro:bit's display and change its intensity back and forth, so it looks like it's beating.

  • sound-wave. Shows an animation that resembles a sound-wave.

About

Some programs for the BBC micro:bit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages