NV memory

5 thoughts on “NV memory

  1. Hi,

    I want to learn it is possible that use NV memory for store last GPIO value. when I sart module again I want to start with previos GPIO value.


    if not what you prefer for these.


    thakns for your help alredy now.


      # try this
      # …stores the the variable "value" to a file called "gpio.dat"
      # then reads the result back from the file into "value1"
      value = 1 
      file = open("gpio.dat","w")
      file = open("gpio.dat","r")
      value1 = int(file.read())

      #now value1 will be equal to value