File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 1
1
The Micro Python project
2
2
========================
3
3
4
+ This is the Micro Python project, which aims to put an implementation
5
+ of Python 3.x on a microcontroller.
6
+
4
7
Subdirectories:
5
8
- py/ -- the core Python implementation, including compiler and runtime.
6
9
- unix/ -- a version of Micro Python that runs on Unix.
@@ -17,10 +20,12 @@ only for 64-bit machines due to a small piece of x86-64 assembler for
17
20
the exception handling.
18
21
19
22
To build:
23
+
20
24
$ cd unix
21
25
$ make
22
26
23
27
Then to test it:
28
+
24
29
$ ./py
25
30
>>> list(5 * x + y for x in range(10) for y in [4, 2, 1])
26
31
@@ -33,10 +38,12 @@ arm-none-eabi-gcc packages from the AUR. Otherwise, try here:
33
38
https://launchpad.net/gcc-arm-embedded
34
39
35
40
To build:
41
+
36
42
$ cd stm
37
43
$ make
38
44
39
45
Then to flash it via USB DFU to your device:
46
+
40
47
$ dfu-util -a 0 -D build/flash.dfu
41
48
42
49
You will need the dfu-util program, on Arch Linux it's dfu-util-git in the AUR.
You can’t perform that action at this time.
0 commit comments