Thanks Gordon, I think I have made the appropriate changes correctly.
There are no errors at least when I drop the code into the Espruino.
When I type rtc into the console it returns ={"i2c":I2C1 }
rtc
={"i2c":I2C1 }
What is the syntax to call one of the public functions now? i.e. DS3231.prototype.readDateTime = function ()
DS3231.prototype.readDateTime = function ()
@StuntMonkeh started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Thanks Gordon, I think I have made the appropriate changes correctly.
There are no errors at least when I drop the code into the Espruino.
When I type
rtc
into the console it returns={"i2c":I2C1 }
What is the syntax to call one of the public functions now? i.e.
DS3231.prototype.readDateTime = function ()