sucareto / esp32-cardreader Goto Github PK
View Code? Open in Web Editor NEW一个 Arduino 读卡器,OLED 显示,DIP 开关切换功能,OTA 更新。
一个 Arduino 读卡器,OLED 显示,DIP 开关切换功能,OTA 更新。
sdvx 加入启动参数-apiserial COM1 -apiserialbaud 115200
为什么一直显示监听COM/115200
打开端口COM1/115200
关闭端口COM1/115200
是哪里设置不对吗?
开关已经调整sw1
[2023/04/03 02:20:51] I:api::serial: listening on COM1/115200
[2023/04/03 02:20:51] W:api::serial: read error on COM1
[2023/04/03 02:20:51] I:lcdhandle: closed COM1
[2023/04/03 02:20:52] I:lcdhandle: opened COM1
[2023/04/03 02:20:52] I:api::serial: listening on COM1/115200
[2023/04/03 02:20:52] W:api::serial: read error on COM1
[2023/04/03 02:20:52] I:lcdhandle: closed COM1
[2023/04/03 02:20:53] I:lcdhandle: opened COM1
[2023/04/03 02:20:53] I:api::serial: listening on COM1/115200
[2023/04/03 02:20:53] W:api::serial: read error on COM1
[2023/04/03 02:20:53] I:lcdhandle: closed COM1
In file included from C:\Users\Administrator\Desktop\ESP32-CardReader\Aime_Reader.h:57,
from C:\Users\Administrator\Desktop\ESP32-CardReader\ESP32-CardReader.ino:1:
C:\Users\Administrator\Desktop\ESP32-CardReader\src\wrappers.h:9:10: fatal error: ArduinoJson.h: No such file or directory
#include "ArduinoJson.h"
^~~~~~~~~~~~~~~
compilation terminated.
exit status 1
Compilation error: ArduinoJson.h: No such file or directory
This image was taken normally but without the main program open.
This image was taken with the main program open normally.
The exception I'm talking about is showing only what the red arrow points to (my drawing is a little abstract, but it looks something like this).
It's worth noting that I'm also not sure when this error occurred.
编译时ide提示
In file included from E:\Ekac\ESP32-CardReader\ESP32-CardReader.ino:1:
E:\Ekac\ESP32-CardReader\Aime_Reader.h:45:10: fatal error: PN532_SPI.h: No such file or directory
#include <PN532_SPI.h>
^~~~~~~~~~~~~
compilation terminated.
我会在这里留下一些使用中的小问题,其他人也可以在这留言
您好,在看了您的示例后,觉得非常有趣,自己也希望做出一个。但是在上传代码时出现以下错误,实在是搞不懂了,希望大佬赐教。
编译过程输出如下:
Arduino:1.8.19 (Windows 10), 开发板:"NodeMCU-32S, 80MHz, 921600, None"
I:\ArduinoIDE\ESP32-CardReader-main\ESP32-CardReader\ESP32-CardReader.ino:2:17: note: #pragma message: 当前的开发板是 NodeMCU_32S
#pragma message "当前的开发板是 NodeMCU_32S"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I:\ArduinoIDE\ESP32-CardReader-main\ESP32-CardReader\ESP32-CardReader.ino:12:17: note: #pragma message: 已启用OTA更新
#pragma message "已启用OTA更新"
^~~~~~~~~~~~~~~~~~~~
In file included from C:\Users\Japerz\Documents\Arduino\libraries\FastLED\src/FastLED.h:67,
from I:\ArduinoIDE\ESP32-CardReader-main\ESP32-CardReader\Aime-Reader.h:8,
from I:\ArduinoIDE\ESP32-CardReader-main\ESP32-CardReader\ESP32-CardReader.ino:24:
C:\Users\Japerz\Documents\Arduino\libraries\FastLED\src/fastspi.h:145:23: note: #pragma message: No hardware SPI pins defined. All SPI access will default to bitbanged output
# pragma message "No hardware SPI pins defined. All SPI access will default to bitbanged output"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from I:\ArduinoIDE\Arduino\libraries\PN532_SPI\PN532_SPI.cpp:2:
I:\ArduinoIDE\Arduino\libraries\PN532_SPI\PN532_SPI.h:23:5: error: 'boolean' does not name a type; did you mean 'bool'?
boolean isReady();
^~~~~~~
bool
I:\ArduinoIDE\Arduino\libraries\PN532_SPI\PN532_SPI.cpp: In member function 'virtual int8_t PN532_SPI::writeCommand(const uint8_t*, uint8_t, const uint8_t*, uint8_t)':
I:\ArduinoIDE\Arduino\libraries\PN532_SPI\PN532_SPI.cpp:48:13: error: 'isReady' was not declared in this scope
while (!isReady()) {
^~~~~~~
I:\ArduinoIDE\Arduino\libraries\PN532_SPI\PN532_SPI.cpp:48:13: note: suggested alternative: 'eReady'
while (!isReady()) {
^~~~~~~
eReady
I:\ArduinoIDE\Arduino\libraries\PN532_SPI\PN532_SPI.cpp: In member function 'virtual int16_t PN532_SPI::readResponse(uint8_t*, uint8_t, uint16_t)':
I:\ArduinoIDE\Arduino\libraries\PN532_SPI\PN532_SPI.cpp:66:13: error: 'isReady' was not declared in this scope
while (!isReady()) {
^~~~~~~
I:\ArduinoIDE\Arduino\libraries\PN532_SPI\PN532_SPI.cpp:66:13: note: suggested alternative: 'eReady'
while (!isReady()) {
^~~~~~~
eReady
I:\ArduinoIDE\Arduino\libraries\PN532_SPI\PN532_SPI.cpp: At global scope:
I:\ArduinoIDE\Arduino\libraries\PN532_SPI\PN532_SPI.cpp:142:9: error: no declaration matches 'boolean PN532_SPI::isReady()'
boolean PN532_SPI::isReady()
^~~~~~~~~
I:\ArduinoIDE\Arduino\libraries\PN532_SPI\PN532_SPI.cpp:142:9: note: no functions named 'boolean PN532_SPI::isReady()'
In file included from I:\ArduinoIDE\Arduino\libraries\PN532_SPI\PN532_SPI.cpp:2:
I:\ArduinoIDE\Arduino\libraries\PN532_SPI\PN532_SPI.h:8:7: note: 'class PN532_SPI' defined here
class PN532_SPI : public PN532Interface {
^~~~~~~~~
"WiFi.h" 对应多个库
已使用: C:\Users\Japerz\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\libraries\WiFi
未使用:I:\ArduinoIDE\Arduino\libraries\WiFi
exit status 1
为开发板 NodeMCU-32S 编译时出错。
非常感谢!
大佬很抱歉又来打扰你了!
这两天定做的PCB到了,全部都装在一起之后PN532亮灯,SSD1306显示一个断开连接的图标,HIGH,和左下角的TN32MSEC003S。
在这之前已经上传TEST试过了,读卡时可以在串口监视器里看到数据,但是使用这个项目里的就不太行(
测试了其他的功能,比如OTA Update都没问题。
测试的游戏有Chunithm New Plus和SDVX EG S2,中二的话是已经在segatools.ini里的aime项添加了enable=0。有使用 amdaemon ,config_common.json 内找不到 aime 项。中二的自检startup页显示找不到读卡器设备。
SDVX是确实还没搞清楚怎么用,如果大佬知道还请多指教.jpg
COM设置的是1,high_baudrate为high。驱动已确定安装。
丢卡上去SSD1306不显示任何东西,那俩插头始终是断开状态(无论我有没有连接到电脑上)
非常抱歉问这么多问题,希望可以帮帮2333
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.