Articles Posted by the Author:

  • flush()

    flush()

    描述 送出緩衝區內尚未傳送的資料,並等待其完成。 flush() 是繼承於 Stream 類別。 語法 適用所 […]


  • Serial.findUntil()

    Serial.findUntil()

    描述 Serial.findUntil() 可以從串列埠緩衝區讀取資料,並且找到目標字串,或者找到結尾字串。 […]


  • Serial.find()

    Serial.find()

    描述 Serial.find() 可以從串列埠緩衝區讀取資料,並且找到目標字串。假如有找到目標字串,則回傳 t […]


  • end()

    end()

    描述 關閉串列埠傳輸,並允許 TX 和 RX 腳做為一般資料輸入、輸出用。如果想要重新啟用串列埠傳輸,只要再呼 […]


  • begin()

    begin()

    描述 設定以每秒多少 bit 的速度 (又稱為鮑率) 來傳輸串列資料。電腦透過串列埠在傳輸資料時,通常是使用 […]


  • available()

    available()

    描述 透過串列埠,取得可供讀取的 byte (字元) 個數。這些可供讀取的資料已經被串列埠讀取進來並且儲存在記 […]


  • if (Serial)

    if (Serial)

    描述 指定的串列埠是否可用。 在所有 86Duino 板子上,使用 if (Serial) 可以知道 USB […]


  • noInterrupts()

    noInterrupts()

    描述 關閉所有中斷 (可以使用 Interrupts() 重啟所有中斷),中斷讓一些重要的任務可以在背景下執行 […]



  • interrupts()

    interrupts()

    描述 重啟所有中斷 (例如:在 noInterrupts() 關閉所有中斷之後呼叫),中斷讓一些重要的任務可以 […]