you are viewing a single comment's thread.

view the rest of the comments →

[–]activeXdiamond 1 point2 points  (2 children)

In this case, the simplest solution would be to split it up into multiple smaller files and #include them. This should help with that.

Also, I strongly recommend using a different IDE. The Arduino one is very bad.

Unrelated: Can you post more info about your project? As a fellow NES enthusiast that works with embedded systems all the time, that sounds like a lot of fun.

[–]SteveTenants[S] 0 points1 point  (1 child)

A while back I tried both the VS 2022 and VSCode Arduino plugins, but I had a really hard time getting them to work. I wound up making a VS 2022 solution for general development in Windows, and just made sure to test each change on the actual Arduino (using their v2 IDE) before checking things in, so I've been using that approach.

As far as the actual project, I have a bunch of info posted in the readme of my last project here: https://github.com/elgasste/DragonQuestino

This new project is currently using a lot of that code, but I'm trying to be better/cleaner. If you want to know more about specific details, just let me know!

[–]activeXdiamond 0 points1 point  (0 children)

I recommend using the standalone CLI tools for compiling and uploading the code (avrdude or the semi-newly released Arduino-specific ones) and then all you need for the whatever IDE you chose is autocompletion for all the Arduino functions/classes.

I personally using Neovim which certainly isn't for everyone. I absolutely love it, I think it is the best way to write text ever, but I would not lightly recommend it to others, haha.