FlagMaker
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Help
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    ###### tags: `Thonny` `MicroPython` # 燒錄 MicroPython 韌體 旗標科技產品內所附的微控制板在出貨前都預先燒錄有 MicroPython 的韌體, 如果是您從市面上買到的微控制板, 就必須自行燒錄對應的 MicroPython 韌體。 ## 下載韌體 旗標的創客產品在下載的範例檔中多半都有附上使用的韌體, 可找到韌體資料夾或是 .bin 結尾的檔案。部分產品可能使用客製版本的韌體, 必須搭配使用: - 如果你購買的是《[用 Python 蓋出物聯網智慧屋](https://www.flag.com.tw/books/product/FM628A)》, 請選 1.19.1 或更新的版本。 - 如果你購買的是《[Python 程式遊戲設計 - 雷切外殼復古街機](https://www.flag.com.tw/books/product/FM624A)》, 請使用下載的範例檔中『韌體』資料夾內的版本。 - 如果你購買的是《[用 Python 學 AIoT 智慧聯網](https://www.flag.com.tw/books/product/FM623A)》, 必須使用[範例檔](https://www.flag.com.tw/DL.asp?FM623A)中所附的客製版本韌體, 在『韌體』資料夾下, 檔名為 esp32-20200512-v1.12-195-gb16990425.bin。 - 如果你購買的是[Python×AI 生醫感測健康大應用](https://www.flag.com.tw/books/product/FM636A), 必須使用[範例檔](https://www.flag.com.tw/DL.asp?FM636A)中『**韌體**』資料夾下, 檔名為 esp32-V1.16.bin 的客製版本韌體。 :::info 如果下載的範例檔中沒有附韌體, 或者是你想試看看不同版本的韌體, 可依照以下步驟到 [MicroPython 官網](https://micropython.org/download)上下載: - D1 mini 控制板請至 [ESP8266](https://micropython.org/download/ESP8266_GENERIC/) 專屬頁面。 - ESP32 控制板請至 [ESP32](https://micropython.org/download/ESP32_GENERIC/) 專屬頁面。 ::: ## 上傳韌體到控制板 1. 請用 USB 傳輸線連接電腦與控制板。 3. 開啟 Thonny, 執行『**執行/選擇直譯器**』功能表指令直接開啟**選項**交談窗並切換到**直譯器**頁次: ![image](https://hackmd.io/_uploads/r1fmLTK4T.png) 2. 根據所要使用的控制板, 選取對應的直譯器環境: ![image](https://hackmd.io/_uploads/Skq_IatEa.png) - D1 mini 控制板請選擇 **MicroPython(ESP8266)**。 - ESP32 控制板請選 **MicroPython(ESP32)**。 3. 按一下右下角出現的**安裝或更新韌體**: ![image](https://hackmd.io/_uploads/rkJ3I6Y46.png) :::info 如果上一步驟選取的是 **MicroPython(一般)**, 就不會出現**安裝或更新韌體**按鈕, 請確認正確選取直譯器。 ::: 1. 在出現的交談窗中, 點開 **Target port** 清單如同〈[設定 Thonny 連結控制板](https://hackmd.io/2qhJmp8dRV6y5TgRcbupHA#%E8%A8%AD%E5%AE%9A-Thonny-%E9%80%A3%E6%8E%A5%E6%8E%A7%E5%88%B6%E6%9D%BF)〉一節所述選取連接埠。 1. 按一下右下方 **≡** 展開功能表: ![image](https://hackmd.io/_uploads/HywKD6FET.png) 選取**Select local MicroPython image** 項目後選擇剛剛下載的韌體檔: ![image](https://hackmd.io/_uploads/Bkp9O6t4T.png) :::info 如果是 ESP8266 韌體, 請再按一下**≡** 展開功能表後選 **Show install options**: ![image](https://hackmd.io/_uploads/ByX4YTYEa.png) 如下設定 **Flash mode** 為 **dio**、**Flash size** 設定為 **4MB**: ![image](https://hackmd.io/_uploads/S1WbfR9La.png) ::: 1. 按一下 **安裝** 開始燒錄韌體: ![image](https://hackmd.io/_uploads/rJLHqaFN6.png) :::warning 如果你使用的是《[用 Python 學 AIoT 智慧聯網](https://www.flag.com.tw/books/product/FM623A)》或是《[Unity × 遊戲手把 虛實整合互動遊戲設計](https://www.flag.com.tw/books/product/FM629A)》寬版的 ESP32 開發版, 請記得按住 boot 鈕, 確認開始燒錄程序後再放開按鈕。 ::: 1. 安裝完成會看到左下角有 "Done!" 字樣: ![image](https://hackmd.io/_uploads/r13c9TYEa.png) 再按一下右邊的**關閉**後再關閉選項交談窗即可。 1. 再如同〈[設定 Thonny 連結控制板](https://hackmd.io/2qhJmp8dRV6y5TgRcbupHA#%E8%A8%AD%E5%AE%9A-Thonny-%E9%80%A3%E6%8E%A5%E6%8E%A7%E5%88%B6%E6%9D%BF)〉一節所述即可看到 MicroPython 環境了。

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully