Skip to content

Commit cb5147d

Browse files
Merge branch 'main' of github.com:sparkfun/sparkfun-python
2 parents 1025572 + d12ff84 commit cb5147d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

examples/mpy_sdcard_log/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,21 @@ The demo Python source code must be installed on the development board. This is
3737
> ```mpremote mip install sdcard```
3838
3939
## Running the Demo
40+
41+
Once the required demo files are loaded on the demo board, and a FAT formatted SDCard inserted, the demo is ready to run. To run the demo, connect to the development board and access the command line (often referred to as the [REPL](https://docs.micropython.org/en/latest/esp8266/tutorial/repl.html)). This is either done via an IDE interface, using the `mpremote` command or a Serial Terminal application.
42+
43+
Once at the REPL command line, the demo runs when the demo python file is loaded.
44+
45+
```python
46+
>>> import mpy_sdcard_log
47+
```
48+
49+
When the demo starts, the SD Card is mounted and the output file created. After this is complete, data is logged to the output file and to the console. The following is an example of the output:
50+
51+
![Demo Logging Output](../../docs/images/mpy_sdcard_log_output.png)
52+
53+
Once the demo is complete, and while in the same MicroPython session, it is rerun using the following command:
54+
55+
```python
56+
>>>> mpy_sdcard_log.run()
57+
```

0 commit comments

Comments
 (0)