I was able to get Nybble configured with #define MAIN_SKETCH commented out, but upon adding it back in, I have the error
Arduino: 1.8.19 (Windows 10), Board: "ATmega328P (5V, 20 MHz) NyBoard V0_1"
text section exceeds available space in boardSketch uses 31342 bytes (102%) of program storage space. Maximum is 30720 bytes.
Global variables use 1595 bytes (77%) of dynamic memory, leaving 453 bytes for local variables. Maximum is 2048 bytes.
Sketch too big; see https://support.arduino.cc/hc/en-us/articles/360013825179 for tips on reducing it.
Error compiling for board ATmega328P (5V, 20 MHz) NyBoard V0_1.
I have V0_2 of Nybble. I've seen the similar post https://www.petoi.camp/forum/basic-assembly-and-setup/opencat-sketch-too-big-solved?origin=auto_suggest about this same issue, but I have the most recent Open Cat code with the fix. My Nybble board seems to have less storage than theirs.
Any help is appreciated!
The NyBoard V0_2 is designed at least 4 years ago. We have improved a lot in both hardware and software. So we recommand to replace this old main board with NyBoard V1_X (NyBoard V1_0, NyBoard V1_1 or NyBoard V1_2.
There is a work around for this old main board - NyBoard V0_2:
When adding #define MAIN_SKETCH back in, please modify the OpenCat.h as following:
commented out this line #define GYRO_PIN 0, and save it.
Then upload the sketch OpenCat.ino to upload the major functionalities sketch. the log we test is as following:
Sketch uses 23478 bytes (76%) of program storage space. Maximum is 30720 bytes. Global variables use 1473 bytes (71%) of dynamic memory, leaving 575 bytes for local variables. Maximum is 2048 bytes.
It can be uploaded successfully, but the Nybble lose gyro function(It's used for balancing and roll-recovering). So we suggest that you'd better replace the main board with NyBoard V1_X(NyBoard V1_0, NyBoard V1_1 or NyBoard V1_2).
https://www.petoi.camp/forum/basic-assembly-and-setup/opencat-sketch-too-big-solved?origin=auto_suggest, This issue is already fixed in the latest code, so there is no need to refer to this post.
Did you configured the code as following, commended out all the modes macro?