void DS3231M_Class::pinAlarm() { writeByte(DS3231M_CONTROL,readByte(DS3231M_CONTROL)&~0x4); // Set bit 3 to on } // of method pinAlarm()
this logical operator (&~) should be an or |
void DS3231M_Class::pinSquareWave() { writeByte(DS3231M_CONTROL,readByte(DS3231M_CONTROL)|0x4); } // of method pinSquareWave()
this logical operator (|) should be an and &~
void DS3231M_Class::pinAlarm() { writeByte(DS3231M_CONTROL,readByte(DS3231M_CONTROL)&~0x4); // Set bit 3 to on } // of method pinAlarm()
this logical operator (&~) should be an or |void DS3231M_Class::pinSquareWave() { writeByte(DS3231M_CONTROL,readByte(DS3231M_CONTROL)|0x4); } // of method pinSquareWave()
this logical operator (|) should be an and &~