- /*!
- * MindPlus
- * uno
- *
- */
- #include <DFRobot_NFC0231.h>
- #include <DFRobot_SSD1306_I2C.h>
- // 创建对象
- DFRobot_PN532_IIC nfc;
- DFRobot_SSD1306_I2C oled12864;
-
-
- // 主程序开始
- void setup() {
- oled12864.begin(0x3c);
- nfc.begin(&Serial);
- nfc.begin();
- nfc.writeData(1, 1, 200);
- if (nfc.scan("200")) {
- oled12864.setCursor(42, 1);
- oled12864.print("hello");
- }
- }
- void loop() {
-
- }
复制代码
|