我正在尝试Arduino Wire库给出的这个例子中的内容,并将其应用到我正在编写的程序中。 这是我的代码。 Comm.NDP[]语句是没有保存在这个文件中的其他类实例,所以我相信你可以忽略它们。 **
* I2C.cpp handles sending of event messages
* between the LORA and MEGA via I2C protocol.
*/
首先,对于Arduino来说是非常新颖的,我已经搜遍了一些教程来努力完成这项工作,似乎没有任何东西能够帮助我。我试图做的是当按下按钮时,LCD背光启动8秒钟。 我有轻微的成功与我的代码第一次尝试: const int buttonPin = 13; // the number of the pushbutton pin
const int ledPin = 9; // the number