|
Forum Index : Microcontroller and PC projects : MM.Basic suggestion
| Author | Message | ||||
palcal![]() Guru Joined: 12/10/2011 Location: AustraliaPosts: 2006 |
From what I can find in the data sheet the DS3231 does not have any useable memory so the RTC SETREG and RTC GETREG commands can only be used on the DS3232 which costs about AU$22. The DS3231 module has the AT24V32 (32kBit EEPROM) on board (at least all the ones I have do). So a question for Geoff, would it be possible to incorporate twofingers code, or enough of it to save variables, into MM.Basic, it would be much more useful than RTC SETREG and RTC GETREG. "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
| Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3308 |
The problem is that there are so many EEPROM chips (and other chips) that it is impossible to support them all within MMBasic. So I only put in support for the really popular functions like measuring temperature. The proper way to support this type of chip is with a CFunction but, from what I can remember, this has not been written yet for the AT24V32. But, what is wrong with twofingers' code? You could load it into the library and it would then be part of your MMBasic. Easy. Geoff Geoff Graham - http://geoffg.net |
||||
palcal![]() Guru Joined: 12/10/2011 Location: AustraliaPosts: 2006 |
Ah yes the Library, forgot about that. Thanks Geoff. "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |