CrazyRedMachine / PN5180-cardio

PN5180 eAmusement wavepass USB HID card reader (cardio)
GNU General Public License v3.0
61 stars 12 forks source link

Arduino Lionardo error? (pn532) #10

Closed datboi2008 closed 1 year ago

datboi2008 commented 1 year ago

when compiling before the upload, it gives me this error.

In file included from C:\Users\Tarquin G\Documents\Arduino\libraries\Adafruit_TinyUSB_Arduino-master\src/tusb_option.h:190:0, from C:\Users\Tarquin G\Documents\Arduino\libraries\Keyboard\src/common/tusb_common.h:70, from C:\Users\Tarquin G\Documents\Arduino\libraries\Keyboard\src/HID.h:34, from C:\Users\Tarquin G\Documents\Arduino\libraries\Keyboard\src/Keyboard.h:25, from F:\PN5180-cardio-PN532\PN5180-cardio-PN532\PN532-cardio\PN532-cardio.ino:6: C:\Users\Tarquin G\Documents\Arduino\libraries\Adafruit_TinyUSB_Arduino-master\src/tusb_config.h:46:4: error: #error TinyUSB Arduino Library does not support your core yet

error TinyUSB Arduino Library does not support your core yet

^~~~~

exit status 1

Compilation error: exit status 1

(NOTE: Im new to arduino and just bought the leonardo just for the purpose of a card reader.)

CrazyRedMachine commented 1 year ago

select arduino leonardo as your board type, this code is not for the TinyUSB stack but regular arduino PluggableUSB

datboi2008 commented 1 year ago

after removing the tinyUSB, i just get this error

In file included from C:\Users\Tarquin G\Documents\Arduino\libraries\Keyboard\src/HID.h:34:0, from C:\Users\Tarquin G\Documents\Arduino\libraries\Keyboard\src/Keyboard.h:25, from F:\PN5180-cardio-PN532\PN5180-cardio-PN532\PN532-cardio\PN532-cardio.ino:6: C:\Users\Tarquin G\Documents\Arduino\libraries\Keyboard\src/common/tusb_common.h:70:10: fatal error: tusb_option.h: No such file or directory

include "tusb_option.h"

      ^~~~~~~~~~~~~~~

compilation terminated.

exit status 1

Compilation error: exit status 1

datboi2008 commented 1 year ago

Nvm i reinstalled the keyboard library and it uploaded. time to test...

datboi2008 commented 1 year ago

every time i plug it in, the log of spicetools says it detects cardio but it could not "open" the device. ive tried 2 different wirings, which wiring am i supposed to use

***EDIT: it seems to work, but it still says it cant open the device

CrazyRedMachine commented 1 year ago

this msg is probably refering to another interface of the device, if card scan works then i wouldn't bother about the error message