Wire.onRequest(handler)

描述

指定一個函式在接收到主端給從端的請求時被呼叫。

參數

handler:函式的名稱,這個函式應該要沒有回傳值以及沒有參數,例如:void myHandler()

回傳

無回傳值

See also

Wire.onReceive()


函式庫參考主頁面

The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.