XinaBox - OLED DISPLAY(OD01) 簡單顯示教學

OLED DISPLAY(OD01) 的功用是用作顯示文字,圖案,整作簡單動畫等等....
所需用料 :
micro:bit x 1
micro:bit bridge IM01 x 1
OLED DISPLAY(OD01) x1
xChips Connector x 1
USB cable x 1
micro:bit coding platform : https://makecode.microbit.org/
OLED DISPLAY(OD01) 接駁方法 : 按我

編程教學

Ex.1 顯示文字

1. 顯示文字需要選擇print "string",
newline的意思是在新一行顯示.

2. 利用button A做輸入, 當按下button A時.
OLED DISPLAY(OD01) 便顯示 "hello" 字串, 你也可以輸入其他文字.

3. 成功的例子!
Ex.2 顯示數字
1. 顯示數字需要選擇print "number",
newline的意思是在新一行顯示.

2. 利用button A做輸入, 當按下button A時.
OLED DISPLAY(OD01) 便顯示 "1234" , 你也可以輸入其他數字.

3.成功的例子!
Ex.3 制作簡單動畫
制作一個pixel動畫,那點pixel會從一邊移動到另一邊,不斷重覆.

影片示範 :