GGT在線論壇 Forums GGT在線論壇 Micro:bit – Lesson 06: 密碼鎖 – 教學影片

  • This topic has 2 replies, 1 voice, and was last updated 1 year ago by twfhk. This post has been viewed 495 times
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #173
    twfhk
    Keymaster
    • Topics8
    • Replies0
    • Level 1

    密碼鎖這一課比較困難。我錄了一些影片,幫助同學明白。我會由如何構思解決方案開始,然後帶大家將解決方案轉化為micro:bit 程式。大家可以看到如何用編程解決日常問題。

    首先,有一個micro:bit 版,上面得兩個按鈕,但要輸入一個有兩個數字嘅密碼,到底點做呢? 呢段片帶大家一齊思考解決方案:

     

    • This topic was modified 1 year ago by twfhk.
    #175
    twfhk
    Keymaster
    • Topics8
    • Replies0
    • Level 1

    開始編程micro:bit。首先係設定variables 先。唔知點解我响個片度講parameter,其實我係指variable 😅

    編程嘅一個好習慣係:將一個大嘅project 分成小部份,試完一個小部份得之後,再加另一個小部份上去,再試,直至完成整個程式。咁樣有錯都容易跟D。

    • This reply was modified 1 year ago by twfhk.
    #177
    twfhk
    Keymaster
    • Topics8
    • Replies0
    • Level 1

    再試另一個小部份。上次按A按鈕,數字會增加。今次加埋按B按鈕,代表完成一個輸入。

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.