Forums Coding Corner Coding Basics Reply To: Coding Basics

#6750

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