elpaso / Rtc_Pcf8563

Arduino Pcf8563 RTC library. A fixed/expanded version of the original Rtc_Pcf8563
29 stars 29 forks source link

Clean optimize #9

Open cevich opened 9 years ago

cevich commented 9 years ago

Depends on #8 (first two commits here will disappear). This PR firmly plans the RTC IIC address into a static const, where it's impossible to accidentally change. It also moves all short 1-3 line methods into the header file and marks them for in-lining. In addition to making the code faster, it also makes the code smaller. The lcd_clock example went from 5346 bytes down to 5068 (under Arduino 1.0.5).

elpaso commented 8 years ago

Can you please rebase and resolve conflicts?