Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

trying to set the rtc values using a struct like in the example and I get this when I try and enter values..

   

 

   

.\main.c: In function 'main':
.\main.c:30:17: error: invalid digit "9" in octal constant
     Start.Min = 09u;

   

it happens for all struct variables.. it only accepts digits 0-7 instead of decimals.

   

what did I do wrong? otherwise my digital clock using a neopixel ring works good 🙂 just have to code the time setting method using switches.

0 Likes
7 Replies