Hagen Kaye
07590c2739
changes to Makefile and main.c to add i2c.c
11 years ago
Hagen Kaye
6474598c65
Added i2c python interface object
11 years ago
Damien
d0cad1905a
Small edits to main README.
11 years ago
Damien
b8ecc29f3b
Add PYBv3 EAGLE files, gerbers, schematic, BOM and assembly guide.
11 years ago
Damien
5bbc3cdc0e
stm: Tidy up some wlan code.
11 years ago
Damien
6f95432407
stm: fix some compiler warnings in CC3000 code.
11 years ago
Damien
d9d6201b52
py: simplify __next__ method for generators.
11 years ago
Damien
d99b05282d
Change object representation from 1 big union to individual structs.
A big change. Micro Python objects are allocated as individual structs
with the first element being a pointer to the type information (which
is itself an object). This scheme follows CPython. Much more flexible,
not necessarily slower, uses same heap memory, and can allocate objects
statically.
Also change name prefix, from py_ to mp_ (mp for Micro Python).
11 years ago
Damien
e2880aa2fd
Fix a few compiler warnings.
11 years ago
Damien
ba66a8fc57
Small changes to README.
11 years ago
Damien
b4c688e2f0
Add basic instructions to README.
11 years ago
Damien
f0d0940638
Add tools/dfu.py, and use it in stm/Makefile.
11 years ago
Damien
5e6ebd77d2
Add LICENSE and README.
11 years ago
Damien
b73085d288
stm: add pyb.sd_test; flash cache flushed only via MSD.
11 years ago
Damien
a3dcd9e80c
py: add more Python built-in functions.
11 years ago
Damien
8c3da5c2c5
stm: flush storage cache immediately; improve user interface.
11 years ago
Damien
0f08267fa4
unix: include obj.h, and build additional py files.
11 years ago
Damien
660365e14c
py: split runtime into map, obj, builtin.
11 years ago
Damien
a1b2693161
py: remove further unnecessary emit_verbatim code.
11 years ago
Damien
e388f1034e
py: fix bug with doc string not recognised after first newline of file.
11 years ago
Damien
02f8941bf6
py: reduce use of emit_verbatim calls to minimum.
11 years ago
Damien
9ecbcfff99
py: work towards working closures.
11 years ago
Damien
5285155ef7
stm: add basic Servo class, and stop and standby functions.
11 years ago
Damien
ec643130d0
stm: add timer to storage cache so it can be flushed.
11 years ago
Damien
318aec6ba9
py: emit correct id for closed over variables.
11 years ago
Damien
6332174ab4
py: compiler supports string juxtaposition=concatenation.
11 years ago
Damien
db4c361f1c
py: add skeletal import functionality.
11 years ago
Damien
261dbf8ce5
stm: add __WFI to sys_tick delay.
11 years ago
Damien
d6b4c66565
stm: add Led object; add option to reset filesystem.
11 years ago
Damien
065f8a5e0e
stm: initial commit of working CC3000 driver, based on Adafruit.
11 years ago
Damien
8fe8413b56
stm: servos on PA0-3; MMA filtering; timer for Python REPL.
11 years ago
Damien
11809ee5d4
stm: disable audio function in systick.
11 years ago
Damien
81cc0e8f00
stm: add function to LCD module to show text.
11 years ago
Damien
d3e59feb6b
stm: reorder things in Makefile.
11 years ago
Damien
033d17a633
py: built-in range now accepts variable number of arguments.
11 years ago
Damien
d79338969b
py: restrict further when for-range optimisation is done.
11 years ago
Damien
86c7fc7dd9
py: add list pop and sort, unpack_sequence, and keywords in method_call.
11 years ago
Damien
6f3e7fc505
py: add UNPACK_SEQUENCE and keyword methods to VM.
11 years ago
Damien
ff099f36d6
py: add more functionality to showbc.
11 years ago
Damien
d47f9d5a4f
py: add call to __init__ when instantiating class object.
11 years ago
Damien
c1075ddc8f
py: add some more opcodes to showbc.
11 years ago
Damien
1895cf91af
Link showbc.o in unix version.
11 years ago
Damien
f03001f8a6
Add function to decode and show byte code.
11 years ago
Damien
0446a0d76d
Change some debugging/output messages for native code generation.
11 years ago
Damien
6d4f3462c4
Viper: function calls now convert constant arguments to objects.
11 years ago
Damien
39c6c59868
STM: add LCD functions for pixel access; add RNG Py bindings.
11 years ago
Damien
5c13dbf6ee
STM: add RNG support.
11 years ago
Damien
087d218d95
Unix: add machine-specific sqrt support.
11 years ago
Damien
6b92d451b2
Add len and subscr (a hack) support for strings.
11 years ago
Damien
94658e2e25
Add JUMP_IF_x_OR_POP opcodes to VM.
11 years ago