Videophile
New member
This is my first post here!
I don't know if newcomers need to presents themselves here, but just in case: I have already done several projects with Arduino and a few with Teensy boards, so I would qualify me as an "advanced hobbyist". Usually, when I have a problem, I find the solution in the technical documentation or in forums. But in this case, I am running out of ideas...
So here is my problem: I use a Teensy 4.1, I have connected a coin battery to VBAT, the voltage is correct (2,99V), but still, the date and time revert to 01/01/1970 00:00 each time I switch off the Teensy. The Teensy is powered through USB for now. I use the setTime function to set the date and time, and I get the current date and time using the year(), month(), etc. functions. I use the Arduino 2.0 IDE.
What am I doing wrong ?
I don't know if newcomers need to presents themselves here, but just in case: I have already done several projects with Arduino and a few with Teensy boards, so I would qualify me as an "advanced hobbyist". Usually, when I have a problem, I find the solution in the technical documentation or in forums. But in this case, I am running out of ideas...
So here is my problem: I use a Teensy 4.1, I have connected a coin battery to VBAT, the voltage is correct (2,99V), but still, the date and time revert to 01/01/1970 00:00 each time I switch off the Teensy. The Teensy is powered through USB for now. I use the setTime function to set the date and time, and I get the current date and time using the year(), month(), etc. functions. I use the Arduino 2.0 IDE.
What am I doing wrong ?