Saving the value from I/O

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
Zeedo65
Posts: 1
Joined: Mon Jan 07, 2019 8:30 am

Saving the value from I/O

Post by Zeedo65 » Mon Jan 07, 2019 8:46 am

Hi

I am trying to develop my micro-controller programming skills using micropython. I designed several projects in the past with Arduinos and I see some interesting features in Micropython which can enhance my skills. So, I want to learn it as a further step. However, I am not an electrical engineer, so, my experience with microcontrollers and the terms used are limited.

So, my question is, I can program microcontrollers with Micropython (or with arduino platform), but, how can I save the values through the REPL or through I/O. As an example, if I add a keypad to my board, (like the following keypad)
http://www.circuitbasics.com/wp-content ... 10x703.jpg

I can read the value entered to the keypad, and I can save it to the board up to the time the board is connected to the electricity. But, as soon as I disconnect it, the recorded value will disappear. So, if you please let me know how to save the value permanently, it will be very helpful for me. Of course, this can be a very basic topic, but, I do not know what to look for in internet to find the solution.

Cheers

Zeedo

ThomasChr
Posts: 113
Joined: Sat Nov 25, 2017 7:50 am

Re: Saving the value from I/O

Post by ThomasChr » Mon Jan 07, 2019 1:17 pm

Micropython has a filesystem in flash, so just use normal file operations to save data.

Post Reply