or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Syncing
xxxxxxxxxx
MicroPython 用於儲存小型資料的 KeyValue 模組
tags:
ESP32
MicroPython
記不住的金魚腦
因為原本就喜歡用 Python 寫些小程式,所以 Arduino IDE 還沒有摸熟,就跑去玩 MicroPython了。之後接觸到 IoT 時,發現 MCU 除了要處理週邊訊號,還得搞定網路各種通訊。網路問題幸有諸多高手分享得以找到解答,但接著就遇到本機參數或資料儲存的問題了。ESP32有 4MB 的 Flash Memroy,而 MicroPython 也可以輕鬆的以檔案的方式讀取,但需要儲存的參數或資料一旦多了,一直 open 覺得實在很煩瑣,若能用 KeyValue 的方式存取豈不美哉!因此寫了個簡單的 KeyValue 模組,方便儲存小型的資料,只要 import 進來就可以簡單的操作了。
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →來碗益氣聰明湯
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →資料方便存起來,許多事情做起來就順多了!
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →關於作者
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →我是 𝙋𝙖𝙤𝙮𝙪𝙣𝙜,是 MicroPython 及 Espruino 的愛好者,一直認為:
「Maker 應該把重心放在應用上,而不該被語言工具限制了創意」
所以想藉由較為簡捷且詳細的解說讓更多人可以學習進而自由發揮,而非淪為只能將程式碼複製貼上的複製人,如果你認同這樣的理念,請一起為此目標努力,如果我的文章內容對你有幫助,請轉發或協助需要的人。若你願意請我喝杯咖啡 ☕ ,我會因此受到鼓勵且喜悅,謝謝!
若有專案需求,請利用 連絡我,謝謝!
🐍 ℳ𝒾𝒸𝓇ℴ𝒫𝓎𝓉𝒽ℴ𝓃 隨手記 | ☕ Espruino 隨手記