Forum › Coding Corner › Coding Basics › Reply To: Coding Basics
January 19, 2022 at 12:08 pm
#6750
Martyn
Hi Cred & Vince,
Throw another } at the end of the code when you get that error. You may have missed it when you copied the code. A straight copy-paste works fine for me.
For the RTClib to work you need to download the relevant library. Head to Tools, Manage Libraries… Type RTClib in the search box, then install the RTClib plugin, the one by Adafruit. I should have mentioned this, sorry.
Vince, that fix sounds strange… The compiler ignores extra spaces, so I’m not sure what is going on there.
Make sure all the { have matching }. Install the library and everything should work.
Cheers, M