- Apr 19, 2014
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
'p' in struct module is "pascal string". 'P' is void*.
-
- Apr 18, 2014
-
-
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.
-
- Apr 17, 2014
-
-
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.
-