Frank pretty much explained how things work but I would like to add a couple of things.
Update() should be called quite often actually - it is what pushes sprites to the screen, detects button presses and just generally makes everything work. Of course, it is quite time consuming since it does a lot of things altogether. Calling it once at the end of each loop is often quite enough, although it doesnât have to be.
I would definitely recommend looking through the source code of our games which can be found on GitHub. By looking at that youâll get the best idea of when is the best to use which function and therefore understand the most important ones in no time.
You know, I think I will eventually be able to deal with the programming, but until I get a real understanding of the MAKERphone library with all of the functions and the purpose of each, I really canât do much. As Frank said, this is where CircuitMess effort is needed. This information needs to be âfront and centerâ in any tutorial offered. It needs to be provided before CircuitBlocks, or Arduino IDE, and as a sticky at the beginning of the Programming Forums for brand new folks like me.
Having said that, I think with the MAKERphone.h reference that Frank gave me (should be the first thing provided in the Forumâs programming sections - would have saved me a lot of time), and Robertâs advice about studying the code from the games (should be the second thing provided in the Forum), I have a way to proceed.
Thank you for the help. Hopefully, more informed questions from me will follow.
I agree with everything youâve said. Weâve been creating a whole new âCreations and tutorialsâ part of our web which would feature a lot of tutorials, guides and much, much more, many of which have been already written for this platform.
Unfortunately, it has taken us a lot more to completely polish it and launch than expected and we donât want to release an unfinished product. It should launch really soon and then there will be plenty of material to work with!
Keep in touch to see when it drops. Until it drops, keep exploring and ask me anything if you need to.
Getting the Arduino error message âError compiling for board Ringo by CircuitMessâ I have the Ringo by CircuitMess board installed as well as the Ringo library. Just trying to play with the fifth LCD example provided by robbie8-bit a couple of weeks ago.
Robert, that is the whole error message. I am just trying to verify (compile) the example sketch, not upload it.
I can compile my Arduino sketches without having the board connected. It should be the same with the Ringo - right?
I have tried to verify the example sketch with the phone turned on. The IDE will burn the Ringo bootloader, so the phone is correctly connected to the computer, and the Arduino IDE recognizes the phone.
There should be error message below that, in the console.
For example, when I try to upload that same file to some other board, I get this.
Arduino: 1.8.10 (Windows 10), Board: âNodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:1MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 256000â
Multiple libraries were found for "SPI.h"
In file included from D:\Docs\MAKERphone Projects\Circuitmess-Ringo-Arduino-packages\Examples\LCDScreen\Fifth\Fifth.ino:5:0:
Used: D:\Users\medve\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\libraries\SPI
C:\Users\medve\OneDrive\Documents\Arduino\libraries\MAKERphone\src/MAKERphone.h:25:26: fatal error: esp32-hal-bt.h: No such file or directory
Multiple libraries were found for "SdFat.h"
#include <esp32-hal-bt.h>
Used: D:\Users\medve\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\libraries\ESP8266SdFat
^
Multiple libraries were found for "WiFi.h"
compilation terminated.
Used: C:\Program
Multiple libraries were found for "MAKERphone.h"
Used: C:\Users\medve\OneDrive\Documents\Arduino\libraries\MAKERphone
Not used: C:\Users\medve\OneDrive\Documents\Arduino\libraries\Ringo
Not used: C:\Users\medve\OneDrive\Documents\Arduino\libraries\Ringo_by_CircuitMess_Library
Multiple libraries were found for "SD.h"
Used: D:\Users\medve\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\libraries\SD
Not used: C:\Program
Multiple libraries were found for "SDFS.h"
Used: D:\Users\medve\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\libraries\SDFS
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Uploading it on ESP32 (Ringo) works fine here.
You even have âCopy error messagesâ button which then copies everything to your clipboard.
Also, what could resolve the problem is updating Ringo files. Ringo library should be version 1.0.2 and Ringo board file should be 1.0.5. Try doing that and then contact me back.
The Library and board files are up to date. I get the same message on other examples that I have tried. ESP32 is grayed out on my board selection panel.
Here is the complete error message. (sorry I didnât get it before).
Arduino: 1.8.10 (Windows 10), Board: âRingo by CircuitMess, Minimal SPIFFS (Large APPS with OTA), 80MHz, 921600, Noneâ
Good News. I was running version 1.8.10 of the Arduino IDE. I installed the latest version 1.8.12, and all is good. The example sketch compiled and I am good to go.
Anytime youâre working on something in Arduino IDE, make sure to update everything since there are a lot of different dependencies and little things that can be changed in just a simple update.
Sometimes there is a problem because some things only work on older versions (which is completely contradictory to what I just said, but hey, itâs computer science!).
Work on that now and contact me if there are any issues!
My programming education is moving along slowly, but I am enjoying it. I am working my way through a couple of âProgramming Arduinoâ books by Simon Monk that are well written, and good for beginners. I use the Arduino UNO board.
What have I learned? I really, really hate curly braces.
Along with the studies, I am working with the Ringo. I made an icon.bmp file showing my initial. I converted the fifth LCD screen example by robbie8-bit to a .bin file, and put them in a folder on the SD card.
I changed the CircuitMess initials and name on the example to my initials and name (please forgive me) so now I have a neat app on my phone with robbieâs cool graphics and my initials and name. Impressed the wife anyway.
After executing my initials app, I push the home button, and the phone re-loads the Ringo firmware.
Hopefully, someday I will be able to write an original program. Stay tuned.