koirin
12/14/2022, 9:52 AMfloitsch
12/14/2022, 9:53 AMFlashStore
for that.
https://libs.toit.io/device/class-FlashStorefloitsch
12/14/2022, 9:54 AMimport device show FlashStore
main:
store := FlashStore
store.set "key" "value"
print (store.get "key")
floitsch
12/14/2022, 9:55 AMStore
interface in the same library. You should use that one in all places except where you allocate the FlashStore
. This way it gets easier to replace it with something else (for example for testing).koirin
12/14/2022, 10:05 AM