-
Sponsor
Sponsor micropython/micropython
- Notifications
- Star 12.5k
- Fork 4.3k
master
Commits on May 6, 2021
-
drivers/display/ssd1306.py: Add rotate method.
And clean up (make more efficient) display set-up commands.
-
esp32/esp32_rmt: Clear config struct before filling it out.
Or unset entries will have garbage in them. Signed-off-by: mishafarms <github@mishafarms.us>
-
-
-
-
-
extmod/moductypes: Fix size and offset calculation for ARRAY of FLOAT32.
uctypes.FLOAT32 has a special value representation and uctypes_struct_scalar_size() should be used instead of GET_SCALAR_SIZE(). Signed-off-by: Damien George <damien@micropython.org>
-
extmod/moductypes: Replace numbers with macro constants.
Signed-off-by: Damien George <damien@micropython.org>
-
extmod/moductypes: Remove double blank lines and debugging printf's.
Signed-off-by: Damien George <damien@micropython.org>
-
extmod: Remove old comments used for auto-doc generation.
They are no longer used, and the text in the docs is more up to date. Signed-off-by: Damien George <damien@micropython.org>
-
unix/modffi: Use a union for passing/returning FFI values.
This fixes a bug where double arguments on a 32-bit architecture would not be passed correctly because they only had 4 bytes of storage (not 8). It also fixes a compiler warning/error in return_ffi_value on certian architectures: array subscript 'double[0]' is partly outside array bounds of 'ffi_arg[1]' {aka 'long unsigned int[1]'}. Fixes issue #7064. Signed-off-by: Damien George <damien@micropython.org>
Commits on May 4, 2021
-
rp2: Move manifest.py to boards directory.
To match other ports. Signed-off-by: Damien George <damien@micropython.org>
-
-
-
-
stm32/boards: Change default LSI_VALUE to 32000 for F4 MCUs.
In the STM32 HAL libraries, the default value for LSI_VALUE for F4 MCUs is 32 kHz. Signed-off-by: David Lechner <david@pybricks.com>
-
docs/esp8266: Add instructions on entering programming mode manually.
Commits on May 2, 2021
-
rp2/tusb_port: Add the device unique-id to the USB id.
The number shown in the USB id is now the same as that returned by machine.unique_id(). All 8 bytes are inserted as hex into the USB id. A usb id at /dev/serial/by-id then looks like: usb-MicroPython_Board_in_FS_mode_e469b03567342f37-if00 -
py/repl: Autocomplete builtin modules.
Doing "import <tab>" will now complete/list built-in modules. Originally at adafruit#4548 and adafruit#4608 Signed-off-by: Artyom Skrobov <tyomitch@gmail.com>
-
py/repl: Refactor autocomplete, extracting reusable parts.
Originally at adafruit#4548 Signed-off-by: Artyom Skrobov <tyomitch@gmail.com>
-
py/repl: Refactor autocomplete to reduce nesting.
Originally at adafruit#4548 Signed-off-by: Artyom Skrobov <tyomitch@gmail.com>
-
py/repl: Enter four spaces when there are no matches.
Originally at adafruit#1859 Signed-off-by: scottbelden <scottabelden@gmail.com>
-
py/repl: Filter private methods from tab completion.
Anything beginning with "_" will now only be tab-completed if there is already a partial match for such an entry. In other words, entering foo.<tab> will no longer complete/list anything beginning with "_". Originally at adafruit#1850 Signed-off-by: Kathryn Lingel <kathryn@lingel.net>
Commits on May 1, 2021
-
py/scheduler: Add missing MICROPY_WRAP_MP_SCHED_EXCEPTION usage.
This was missed in commit 7cbf826. Signed-off-by: Damien George <damien@micropython.org>
Commits on Apr 30, 2021
-
docs/library/machine: Add machine.bootloader docs.
This is provide by a few ports now, and is very useful. Signed-off-by: Damien George <damien@micropython.org>
-
docs/library/machine: Specify initial machine.PWM class.
This adds an initial specification of the machine.PWM class, to provide a way to generate PWM output that is portable across the different ports. Such functionality may already be available in one way or another (eg through a Timer object), but because configuring PWM via a Timer is very port-specific, and because it's a common thing to do, it's beneficial to have a top-level construct for it. The specification in this commit aims to provide core functionality in a minimal way. It also somewhat matches most existing ad-hoc implementations of machine.PWM. See discussion in #2283 and #4237. Signed-off-by: Damien George <damien@micropython.org>
-
py/runtime: Remove commented-out code from mp_deinit().
These commented-out lines of code have been unused for a long time, so remove them to avoid confusion as to why they are there. mp_obj_dict_free() never existed, this line was converted from mp_map_deinit() and commented out as soon as it was added. The call to mp_map_deinit(mp_loaded_modules_map) was commented in 1a1d11f. Fixes issue #3507. Signed-off-by: Damien George <damien@micropython.org>
-
tests/multi_bluetooth: Add performance test for gatt char writes.
Signed-off-by: Damien George <damien@micropython.org>
-
tests/run-multitests.py: Provide some convenient serial device shorcuts.
It's now possible to specify a device serial port using shorcuts like: $ ./run-multitests.py -i pyb:a0 -i pyb:u1 multi_bluetooth/*.py Signed-off-by: Damien George <damien@micropython.org> -
zephyr/boards: Add config for nucleo_wb55rg board.
This board does not work with CONFIG_NETWORKING enabled. And CONFIG_CONSOLE_SUBSYS is enabled so that ctrl-C works. Signed-off-by: Damien George <damien@micropython.org>
-
zephyr/modmachine: Add machine.idle().
Signed-off-by: Damien George <damien@micropython.org>