File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11name =MCP79412RTC
2- version =3.1.0
2+ version =3.1.1
33author =Jack Christensen <jack.christensen@outlook.com>
44maintainer =Jack Christensen <jack.christensen@outlook.com>
55sentence =Arduino library for the Microchip MCP79411/12 Real-Time Clock/Calendar.
Original file line number Diff line number Diff line change 44// Copyright (C) 2025 by Jack Christensen and licensed under
55// GNU GPL v3.0, https://www.gnu.org/licenses/gpl.html
66//
7- // Allows a sketch to work with either type of RTC, determined at run time.
7+ // Allows a sketch to work with either type of RTC, can be determined at run time.
88
99#ifndef GENERIC_RTC_H_INCLUDED
1010#define GENERIC_RTC_H_INCLUDED
@@ -20,10 +20,11 @@ class GenericRTC
2020 virtual void begin () = 0;
2121 virtual time_t get () = 0;
2222 virtual uint8_t set (const time_t t) = 0;
23- virtual uint8_t writeRTC (const uint8_t addr, const uint8_t * values, const uint8_t nBytes) =0;
23+ virtual uint8_t writeRTC (const uint8_t addr, const uint8_t * values, const uint8_t nBytes) = 0;
2424 virtual uint8_t writeRTC (const uint8_t addr, const uint8_t value) = 0;
2525 virtual uint8_t readRTC (const uint8_t addr, uint8_t * values, const uint8_t nBytes) = 0;
2626 virtual uint8_t readRTC (const uint8_t addr) = 0;
27+ virtual int16_t temperature () {return 0 ;};
2728
2829 protected:
2930 TwoWire& wire; // reference to Wire, Wire1, etc.
You can’t perform that action at this time.
0 commit comments