微型Python 社群

微型Python社群 對於BBC Micro:bit

Python是一種寫程式的語言,廣泛用於新手與老手。 Python是建基於純文字的,可能開初令你卻步,但只要有人指導加上自己小小耐性,其實任何人都可靠Python寫程式 - 而這本指南就是來幫你!

BBC micro:bit用的Python版本叫做MicroPython。 按以下的連結探索MicroPython不同部份的資料,資料將micro:bit分開

All of the guides below work with the online Python Editor.

介紹

So, what's Python about? Who uses it? What can Python do for my micro:bit? All those questions answered right below.

觀看介紹

最基本

Let's start with the basics - making your micro:bit scroll "Hello World!"

查看Hello World的部分

圖片

Get those 25 LEDs on your micro:bit under your control and find out about the fun pre-programmed pictures you can use in MicroPython.

查看圖片的部分

按鈕

The A and B buttons on your micro:bit are one of the many 'inputs' it responds to. Learn how to use them here.

查看按鈕的部分

輸入/輸出

The strip of golden 'teeth' at the bottom of your micro:bit aren't just to be fashionable, they can be used to hook your micro:bit to all sorts of electronics!

View the Input/Output section

Radio

Learn how to make your micro:bit communicate wirelessly with other devices - like magic!

View the Radio section

Music

Attach a speaker to your micro:bit and suddenly it becomes a high-tech instrument! Learn about writing music for your micro:bit and the cool built-in melodies available.

View the Music section

Random

Take a chance and learn how to make your micro:bit mix things up using the Random module.

View the Random section

Movement

Bored of just using buttons? Use tilting and movement to tell your micro:bit what to do!

View the Movement section

Gestures

Your micro:bit can tell which way up it's facing and how fast it's moving. Take advantage of these gesture codes and be a real smooth mover.

View the Gestures section

Direction

Did you know that the micro:bit not only has an accelerometer built-in but a compass? Head directly to the link below and find out more.

View the Direction section

Speech

Your micro:bit will be the talk of the town with the Speech module! Follow this guide to make your micro:bit talk, do silly voices and even sing!

View the Speech section

Network

Double the micro:bit, double the fun! Learn how to connect two micro:bits together using their Input/Output pins.

View the Network section

Next Steps

Always experiment, always explore, always learn! Once you get used to the coding concepts in this guide, read here to learn how to take things further.

Click here to read the Next Steps.