jarzebski / Arduino-DS3231

DS3231 Real-Time-Clock
MIT License
157 stars 84 forks source link

Arduino Zero Compatible? #8

Open sajmon0 opened 8 years ago

sajmon0 commented 8 years ago

Hi, I have been trying to launch these examples on Arduino Zero and there were errors during the compiling. When I have changed board on e.g. Arduino Uno then there weren't errors. How to fix it?

SimGas commented 7 years ago

Even if your problem is over one year old: Arduino Zero can have to problems: In some DS3231 libraries the term "PM" is used, which is defined as a macro in the samd low level code. To fix it, replace all PM in the cpp and h file with for example PM_time