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.