-- John Longworth December 2017 -- Write and Read internal RTC memory locations -- Uses rtcmem modules -- Store the value 53 in slot 0 rtcmem.write32(0, 53) -- Store the values 2, 5 and 1234567 into slots 42, 43 and 44 respectively rtcmem.write32(42, 2, 5, 1234567) -- Read the values in slots 42, 43 and 44 val1, val2, val3 = rtcmem.read32(42, 3) print(val1, val2, val3) -- Read the value in slot 0 print(rtcmem.read32(0, 1))