- 19 Apr, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
-
- 18 Apr, 2014 20 commits
-
-
Damien George authored
It's Light Emitting Diode, so should be LED.
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
Main reason for expanding buffer protocol API was to support writes to a buffer in ADC module (see read_timed). With this change you can now create an array of arbitrary type and ADC.read_timed will store into that array in the correct format (byte, int, float). I wonder though if all these changes were really worth it to support just this function. Hopefully this enhanced buffer protocol API (with typecode specified) will be used elsewhere.
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
This is an attempt to clean up the Micro Python API on the pyboard. Gpio functionality is now in the Pin object, which seems more natural. Constants for MODE and PULL are now in pyb.Pin. Names of some classes have been adjusted to conform to CamelCase. Other miscellaneous changes and clean up here and there.
-
Damien George authored
-
Damien George authored
When querying an object that supports the buffer protocol, that object must now return a typecode (as per binary.[ch]). This does not have to be honoured by the caller, but can be useful for determining element size.
-
Damien George authored
We are not as verbose as CPython, and maybe a bit too cryptic sometimes.
-
Damien George authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Test usecase I used is print(time.time()) and print(time.time() - time.time()). On Linux/Glibc they now give the same output as CPython 3.3. Specifically, time.time() gives non-exponential output with 7 decimal digits, and subtraction gives exponential output e-06/e-07.
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Paul Sokolovsky authored
I skipped implementing this initially, but then it causes __name__ of current module be overwritten and relative imports fail.
-
- 17 Apr, 2014 18 commits
-
-
Damien George authored
On stmhal, computed gotos make the binary about 1k bigger, but makes it run faster, and we have the room, so why not. All tests pass on pyboard using computed gotos.
-
Damien George authored
-
Damien George authored
Also make consistent use of MP_OBJ_NOT_SUPPORTED and MP_OBJ_NULL. This helps a lot in debugging and understanding of function API.
-
Damien George authored
-
Damien George authored
mp_obj_t->subscr now does load/store/delete.
-
Paul Sokolovsky authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
With this fix, all tests in tests/basics pass on pyboard.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
mem_info() is already pretty hacky, let it be more hacky.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
I.e. with its own globals. So, just as for functions, we need to switch globals when resuming a generator.
-
Paul Sokolovsky authored
This follows pattern already used for objtuple, etc.: objfun.h's content is not public - each and every piece of code should not have access to it. It's not private either - with out architecture and implementation language (C) it doesn't make sense to keep implementation of each object strictly private and maintain cumbersome accessors. It's "local" - intended to be used by a small set of "friend" (in C++ terms) objects.
-
Damien George authored
Addresses issue #487.
-
Damien George authored
Any generated headers go in $(BUILD)/genhdr/, and are #included as 'genhdr/xxx.h'.
-
Damien George authored
Merge branch 'relocatable-build-dir' of github.com:lurch/micropython into lurch-relocatable-build-dir
-