what is< RTCC.h> libarary use it Arduino #include <TFT.h> #include <SD.h> #inclu
ID: 3839339 • Letter: W
Question
what is< RTCC.h> libarary use it Arduino
#include <TFT.h>
#include <SD.h>
#include <gciWidget.h>
#include <RTCC.h>
// Interactive Widgets (buttons etc) used in the program, found in the GCI/DAT files, from WS4
#include "RTC 35DTVidConst1.h" // pointers to gciWidget objects are declared here
#define FRAME_OFF_UP 0
#define FRAME_OFF_DOWN 1
#define FRAME_ON_UP 2
#define FRAME_ON_DOWN 3
#define BTN_RELEASED 0
#define BTN_PRESSED 1
int activeButton = -1; // for handling the group of buttons
bool toggleStates[6] = {0, 0, 0, 0, 0, 0}; // toggle states for Winbutton2 to Winbutton7
bool timeFormat12hr = false; // 12-hour time format or 24-hour time format
unsigned char year, month, day, hour, min, sec;
unsigned char *timeDatePtr[6] = {&sec, &min, &hour, &day, &month, &year};
int counter = 0;
RTCCValue temp;
RTCCValue now;
Explanation / Answer
RTCC.h is used to set and get the current time using the Real Time Clock and Calendar (RTCC) module on the PIC24. There is no time keeping battery for the RTCC module – it shares power with the PIC. So to keep it running for extended period, you will probably need to put the PIC into standby when not in use to save power while still keeping the RTCC running.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.