Skip to content

Commit aa6f93e

Browse files
committed
Hello world micropython on ESP32.
1 parent b3e63be commit aa6f93e

File tree

9 files changed

+1193
-1
lines changed

9 files changed

+1193
-1
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
__pycache__/
2+
*.py[cod]
13
build*/
24
*.~lock.*

esp32-micropython/Makefile

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
SERIAL_PORT=/dev/ttyS4
2+
BAUD=115200
3+
4+
rshell:
5+
rshell -p $(SERIAL_PORT)
6+
7+
upload:
8+
rshell -p $(SERIAL_PORT) rsync src/ /pyboard
9+
10+
rshell_repl:
11+
rshell -p $(SERIAL_PORT) repl
12+
13+
repl:
14+
picocom $(SERIAL_PORT) -b$(BAUD)

esp32-micropython/README.md

+15-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,18 @@
77
A 0.96" OLED diplay allows showing the data. This allows both tracking instantaneous usage as well as how much more energy has been produced than used (or not!).
88
The flash storage built into the ESP32 allows recording around (TBD) days of data at a resolution of (TBD) minutes. Furthermore, the ESP32 serves a small web app so the data can be loaded and visualized in the web browser of a smartphone or PC.
99

10-
### Hardware
10+
### Hardware
11+
12+
### Software
13+
14+
#### Setup
15+
16+
Flash the ESP32 with Micropython: https://micropython.org/download#esp32
17+
18+
Update the makefile to match your serial port settings, then:
19+
`make upload`
20+
21+
#### Development
22+
23+
To get a Python REPL on the ESP32, do:
24+
`make repl`

esp32-micropython/hardware/bom.xlsx

10.1 KB
Binary file not shown.

esp32-micropython/requirements.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
rshell
2+

esp32-micropython/src/lib/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)