New answers tagged

0

I took a look at the FabioCuomo-DS3231 library, as I guess that is what you are using, and I saw nothing related to setting those two bits. However, you can take inspiration from the code in the library to implement the functionality yourself. I would try this: void enableAlarmInLowPower(void) { // Read the control register. Wire.beginTransmission(...


1

Your code is not very long, but I already see a few things that I would change. int analogPin = 0; [...] pinMode(A4, INPUT); These usages of pins are inconsistent. I personally prefer settings at the beginning of the file, so I'd expect int analogPin = 0; int whateverPin = A4; // I don't have a good name yet While you have pinMode(A4, INPUT); there's ...


Top 50 recent answers are included