- 10 Apr, 2014 4 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Only calcsize() and unpack() functions provided so far, for little-endian byte order. Format strings don't support repition spec (like "2b3i"). Unfortunately, dealing with all the various binary type sizes and alignments will lead to quite a bloated "binary" helper functions - if optimizing for speed. Need to think if using dynamic parametrized algos makes more sense.
-
Paul Sokolovsky authored
Syntax is usual C #if*/#endif, but each qstr must be wrapped individually.
-
- 09 Apr, 2014 23 commits
-
-
Paul Sokolovsky authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
Remove exception name from inside the exception message
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Andrew Scheller authored
This prevents micropython printing exception messages like ImportError: ImportError: No module named 'foo'
-
Damien George authored
mp_obj_is_integer should be used to check if an object is of integral type. It returns true for bool, small int and long int.
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
Needed to reinstate 2 delete opcodes, to specifically check that a local is not deleted twice.
-
Damien George authored
So we can add more flags.
-
Damien George authored
-
Damien George authored
-
Damien George authored
Small reduction in ROM, heap and stack usage.
-
Damien George authored
Convert int types to uint where sensible, and then to uint8_t or uint16_t where possible to reduce RAM usage.
-
Damien George authored
-
Damien George authored
-
Paul Sokolovsky authored
-
Damien George authored
-
Damien George authored
-
- 08 Apr, 2014 13 commits
-
-
Damien George authored
Can now calibrate, set pulse width, angle and speed.
-
Damien George authored
Fix make-pins.py to support having multiple names for a pin.
-
Dave Hylands authored
SW and X17 now both map to PB3
-
Paul Sokolovsky authored
Fixes #449.
-
Damien George authored
With the implementation of proper string formatting, code to print a small int was delegated to mpz_as_str_inpl (after first converting the small int to an mpz using stack memory). But mpz_as_str_inpl allocates heap memory to do the conversion, so small ints needed heap memory just to be printed. This fix has a separate function to print small ints, which does not allocate heap, and allocates less stack. String formatting, printf and pfenv are now large beasts, with some semi-duplicated code.
-
Damien George authored
-
Damien George authored
-
Paul Sokolovsky authored
These two are apprerently the most concise and efficient way to convert int to/from bytes in Python. The alternatives are struct and array modules, but methods using them are more verbose in Python code and less efficient in memory/cycles.
-
Paul Sokolovsky authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-