Commit Graph

2021 Commits

Author SHA1 Message Date
Jeff Epler 5797b68153
Merge pull request #5649 from microDev1/traceback
Run test for traceback module
2021-12-02 08:51:53 -06:00
microDev 69faaa52b8
run test for traceback module 2021-12-02 14:55:02 +05:30
Jeff Epler f94d3e86cf
UART: Don't allocate the object so early
This object has a finalizer, so once it's no longer referenced, GC can
call that finalizer and then deallocate the storage.

In the case of a failure during construction (e.g., when checking
`validate_obj_is_free_pin_or_none`) this will happen on an incompletely
initialized structure.  On samd, in particular, a newly allocated object
(with construct never called) appears to be valid, so GC collecting it
causes deinit() to do things, leading to a hard fault.

The double creation of the UART object was necessary specifically so that
the second allocation would fail.  Probably there were other (single
call) ways to make it fail, but this was the easiest / the one discovered
in real life.

Closes: #5493
2021-12-01 20:54:39 -06:00
Scott Shawcroft fea0103ff2
Merge pull request #5638 from jepler/test-aesio
Test aesio
2021-12-01 10:05:37 -08:00
Scott Shawcroft 39cc38e008
Merge pull request #5641 from jepler/bitbangio-spi-write-slice
bitbangio.SPI: Handle kwargs like busio.SPI
2021-12-01 09:56:04 -08:00
Jeff Epler 9ee46bb462
bitbangio.SPI: Handle kwargs like busio.SPI
untested
2021-11-30 17:22:13 -06:00
Jeff Epler 62895b2636
aesio: fix docs 2021-11-30 15:25:42 -06:00
Jeff Epler 1f1def54b7
add aesio to unix coverage build 2021-11-30 15:25:05 -06:00
Kamil Tomaszewski 9a8d8b1bf1 spresense: Fix time.time() 2021-11-30 12:38:48 +01:00
Scott Shawcroft ee5536386d
Merge remote-tracking branch 'adafruit/main' into rpi 2021-11-24 14:23:23 -08:00
Scott Shawcroft 153ff6031e
Merge pull request #5616 from jepler/bitmaptools-bugfixes
Bitmaptools bugfixes
2021-11-24 11:50:29 -08:00
Scott Shawcroft b09c777d0a
Merge pull request #5584 from gamblor21/is31
IS31FL3741 Framebuffer Driver
2021-11-24 11:41:51 -08:00
Jeff Epler 6191696232
bitmaptools: Fix the DitgherAlorithm.FloydStenberg value 2021-11-24 09:51:19 -06:00
Scott Shawcroft 927a720de9
Fix I2C and feedback from Dan 2021-11-23 17:23:13 -08:00
gamblor21 97032fdbd0 Renaming files 2021-11-23 17:21:13 -06:00
gamblor21 9f2660f6ac Capitalization changes 2021-11-23 17:06:39 -06:00
gamblor21 9b85714b76 Removed unused imports 2021-11-23 13:24:36 -06:00
Timon a1052d5f73
Initial broadcom port for Raspberry Pi
This targets the 64-bit CPU Raspberry Pis. The BCM2711 on the Pi 4
and the BCM2837 on the Pi 3 and Zero 2W. There are 64-bit fixes
outside of the ports directory for it.

There are a couple other cleanups that were incidental:
* Use const mcu_pin_obj_t instead of omitting the const. The structs
  themselves are const because they are in ROM.
* Use PTR <-> OBJ conversions in more places. They were found when
  mp_obj_t was set to an integer type rather than pointer.
* Optimize submodule checkout because the Pi submodules are heavy
  and unnecessary for the vast majority of builds.

Fixes #4314
2021-11-22 14:54:44 -08:00
gamblor21 c38612d59d Fixed capitalization 2021-11-21 11:39:42 -06:00
Jeff Epler 711f1f833b
bitmaptools: Fix the case where `factor`'s Python type is int
mp_obj_float_get gets the value of an object, which must be
exactly a float.  mp_obj_get_float gets the float value of
an object of various types, including floats & ints.
2021-11-20 21:15:26 -05:00
gamblor21 5243a33584 Check map to display size 2021-11-20 14:04:49 -06:00
gamblor21 16c52b76d6 Capitalize module 2021-11-20 14:04:49 -06:00
gamblor21 6b2d43d3c8 Mapping for LEDs to diplay 2021-11-20 14:04:49 -06:00
gamblor21 9fa3feffb1 Cleanup 2021-11-20 13:46:12 -06:00
gamblor21 e877449ae0 Cleanup 2021-11-20 13:46:12 -06:00
gamblor21 aa92d3a476 Cleanup and scaling addition 2021-11-20 13:46:11 -06:00
gamblor21 29c58575b0 Removed prints updated brightness 2021-11-20 13:46:11 -06:00
gamblor21 d063bf2675 Initial commit for IS31 2021-11-20 13:46:11 -06:00
Jeff Epler ee5e7161af
bitmaptools: use stream API
this allows `readinto` to succeed in the unix port, where the VFS
is not FAT
2021-11-20 08:51:40 -05:00
Jeff Epler 932131b4ff
Merge pull request #5596 from kamtom480/camera_fix
camera: Update camera_make_new arguments
2021-11-18 09:06:50 -05:00
Kamil Tomaszewski 00426dc232 camera: Update camera_make_new arguments 2021-11-17 16:42:47 +01:00
anecdata 193e936807 like #5571, but for AP 2021-11-16 12:21:50 -06:00
Dan Halbert bd22667eb5
Merge pull request #5571 from anecdata/set_mac
Set Station MAC address & validate connect SSID len
2021-11-15 20:33:54 -05:00
Scott Shawcroft ba2f32e374
Merge pull request #5578 from jepler/disable-mkfs-fat32
oofatfs: Allow fat32 mkfs to be compiled out.  optimize rainbowio & enable everywhere
2021-11-15 10:57:25 -08:00
microDev 733bfbc10a
Merge branch 'main' into set_mac 2021-11-15 20:44:30 +05:30
Alec Delaney 6f17c4c4d1 Fix value_to_latch Sphinx param 2021-11-14 14:04:20 -05:00
Jeff Epler 9646d3f963
rainbowio: No need for the ternary here
.. mp_obj_get_float handles the case where the arg is an int already.

This saves 12 bytes of code size on trinket_m0.
2021-11-12 17:31:15 -06:00
Jeff Epler c91901dc37
rainbowio: Fix some things the unix build errors about 2021-11-12 17:31:13 -06:00
anecdata 31d45a3f32 fix old bug that was masking new bug 2021-11-12 16:27:13 -06:00
Jeff Epler 06bb6ea5a2
use MP_OBJ_NULL in preference to 0 2021-11-12 13:21:53 -06:00
Jeff Epler 167665f8b7
fix build 2021-11-12 11:03:45 -06:00
Jeff Epler d55388a17d
Add bitmaptools to unix build 2021-11-12 10:47:18 -06:00
Jeff Epler c6dbc7df3a
Add displayio bitmaps to unix build 2021-11-12 10:47:17 -06:00
anecdata e4f06f69cd maybe fewer bytes 2021-11-11 23:23:52 -06:00
anecdata bb8e9ef483 tweak exception messages (re-tested) 2021-11-11 21:54:41 -06:00
anecdata 18f2019300 Set Station MAC address & validate connect SSID len 2021-11-11 17:04:35 -06:00
Scott Shawcroft c1177662cd
Merge pull request #5537 from microDev1/monitor-mode
Add Monitor Mode
2021-11-11 10:10:39 -08:00
Jeff Epler 621953c960
Additional missing-prototypes fixes
I think this correctly enables missing-prototypes in atmel-samd
and raspberrypi ports.
2021-11-10 10:55:53 -06:00
Jeff Epler ff9b10c7b6 fix doc build problems 2021-11-08 16:46:44 -06:00
Jeff Epler cbfa41f238 Merge remote-tracking branch 'origin/main' into dither3 2021-11-08 16:46:36 -06:00