LuiCat / ArduinoTaikoController

Sketch for Arduino based taiko game controller circuit for PC and Nintendo Switch
MIT License
130 stars 39 forks source link

What to do with "taiko_controller" file / Where to put it #18

Closed KuruUwU closed 11 months ago

KuruUwU commented 11 months ago

(doing the NS version) While I tried to upload the code that I copypasted from taiko_controller file named "taiko_controller.ino" in arduino IDE into my Leonardo, I got a compilation error where it said "AnalogReadNow.h: No such file or directory" Output I then looked around the taiko_controller file on github and found the files that I assume that I needed to download taiko_controller file Now the real question is... now that I downloaded the 5 files, where do I like put these files? Or do I just copypaste the code contents from inside each of the .cpp and .h files and put them into arduino IDE where the .ino code is already in?

(This is my first project that includes any arduino or any electrical hardward stuff so sorry if this question is like beginner questions)

KuruUwU commented 11 months ago

Ok so decided to experiment around and just followed the directory to then I have dragged the .cpp and .h files into where the code is saved on File looks now the problem just like #16 is occuring where it said (Property 'upload.tool.serial' is undefined) Output2

KuruUwU commented 11 months ago

Wait i think i cracked the code (kekw)

in the location where we would place the "boards.txt" inside the text you would see "leonardo.upload.tool=avrdude" and "ns_con.upload.tool=avrdude" add the word "serial" at the end of tool

leonardo.upload.tool=avrdude -> leonardo.upload.tool.serial=avrdude ns_con.upload.tool=avrdude -> ns_con.upload.tool.serial=avrdude

(if you use a promicro, change it on the promicro one instead I assume ex. pro.upload.tool.serial=avrdude)

after i done that i got a differnt message

fixed done uploading

I havent actually attached the Piezo sensors yet to test it out but my hope to get it working has gone up a bit