I am follwing https://bittle.petoi.com/4-configuration and I want to run the tests, like the Buzzer test.
My question is what happens after I have tested?
I am new to Arduino and the NyBoard so I don't know what happens with a sketch.
Does it run forever until I turn the battery off?
Does it stay forever on the board or is it in RAM and then disappears?
Does it take up memory?
Does it erase the prestored routines?
Can I send a command like "beep()" on the Serial Monitor? or is it only what is written in the "void setup()" function?
How many sketches can I upload?
How do I choose a sketch?
In Open cat, the main program it have a buzzer test into the setup(){} the fonction is playMelody(MELODY); if you take it into loop(){} the robot will pley the bootup melody forever. But into setup(){} it will play 1 time.
If the battery are off and you have plugged in the USB PC Board the Bittle enter into a fonction made to do buzzing. (I'm not sure but) it's into loop(){}
if (voltage <
#ifdef NyBoard_V0_1
650
#else
300
#endif
) { //give the cat a break when voltage drops after sprint
//adjust the thresholds according to your batteries' voltage
//if set too high, the robot will keep crying.
//If too low, Nybble may faint due to temporary voltage drop
PTL("check battery");
PTL(voltage);//relative voltage
meow();
delay(500);
}
Everything are stored into Flash memory.
You can upload/write more than 100,000 times on the Atmega.
Follow the repertories order (https://bittle.petoi.com/4-configuration) and follow the README instruction into the ZIP of the source code.
Everything will working fine ! Have fun !
Side note: We only maintain the OpenCat codes on GitHub. We always make sure the WriteInstinct.ino and OpenCat.ino are from the same release. The codecraft interface is developed by another company. It's a wrapper based on OpenCat.ino. It may be outdated in the future.