QR code 編程教學

Zumi 能透過相機配合編程來讀取並解密 QR Code ,
有關 QR Code 的簡單介紹可看此 : 按我
所需材料:
Zumi x 1
Zumi Dashboard x 1
QR code x 1
編程教學(Blockly) :

由於需使用 Zumi 的相機掃瞄QR Code , 因此需先啟動相機(import camera) ,
並把它開啟 ( start camera) 。
這2個代碼皆可在"camera" block 中找到。
創建2個variable 「img」和「message」 , 前者為拍攝照片時用 ,
後者則是設為掃瞄「img」拍下的QR Code時使用。

Variable 可在 「Varibale」的 Create variable 來創建。
加入「print get message」以顯示解密過後的訊息。

運行編程並把 Zumi 面向這個 QR code , 它加密了"LEFT"這個文字。

成功的話 , 您會在 console 看到「LEFT」這串文字