Commit Graph

2934 Commits

Author SHA1 Message Date
Dan Halbert 1c388ab315 finish converting to MP_REGISTER_ROOT_POINTER() 2023-09-29 10:49:34 -04:00
Dan Halbert 76ff01452b Trinket M0 comes up; still very much wip 2023-09-28 16:22:10 -04:00
Jeff Epler f80d08e207
Make dot clock displays with a masked portion on the left work 2023-09-27 15:15:32 -05:00
Jeff Epler 6990c37320
Fix calculation of bit-weight for reset pin 2023-09-26 08:33:00 -05:00
Randy Hudson f5d4f1edb7 Fixed displayio/Bitmap value_count range 2023-09-25 22:11:25 -04:00
Jeff Epler 04ad525c09
Re-work ioexpander_send_init_sequence
* can now send the I2C bus initialization code
 * can now reset the display on an I/O expander pin
 * parameters re-ordered to enable easy use with **board.TFT_IO_EXPANDER
2023-09-25 11:31:16 -05:00
MicroDev 27fd60d739
implement suggested changes
- update the docs
- split out common `watchdog_reset`
- revert to using `None` instead of `WatchDogMode.NONE`
2023-09-24 15:23:38 +00:00
MicroDev 05812e0618
Merge branch 'main' into watchdog-rp 2023-09-24 05:13:22 +00:00
Jeff Epler 477b2300a1
fix definitoin of MidiTrack type 2023-09-22 13:58:01 -05:00
Jeff Epler 5d9b84dcb2
fix definition of MathOperation 2023-09-22 13:57:51 -05:00
Jeff Epler 78a7c6b164
fix getting make_new slot of object 2023-09-22 13:57:31 -05:00
Jeff Epler f812750a76
fix use of mp_type_fileio 2023-09-22 13:56:55 -05:00
Jeff Epler e48984872b
allow definition of namedtuples in core 2023-09-22 13:56:16 -05:00
Jeff Epler 1c09a0b494
fix string construction 2023-09-22 13:53:56 -05:00
Jeff Epler e1af819a91
fix (unused) default for some required args 2023-09-22 13:53:11 -05:00
Jeff Epler 5108c3a11f
whitespace 2023-09-20 11:27:12 -05:00
Jeff Epler 51f49698c2
indentation 2023-09-20 11:27:01 -05:00
Dan Halbert 4d175ab41a convert to MP_DEFINED_CONST_OBJ_TYPE() 2023-09-19 21:09:29 -04:00
Dan Halbert 2c0fa0f7dc initial merge from v1.20.0; just satisifying conflicts 2023-09-19 11:10:12 -04:00
Scott Shawcroft e39fbf1b26
Merge pull request #8401 from jepler/i2c-expander-init
Fast(ish) special purpose bitbang spi over i2c
2023-09-18 13:19:49 -07:00
Jeff Epler ee86c7649f
fix markup, that's not a link 2023-09-18 10:23:01 -05:00
Jeff Epler 91b98dc9d5
fix constness 2023-09-15 14:45:53 -05:00
Jeff Epler c7b7e22195
remove debug print 2023-09-15 11:16:43 -05:00
Jeff Epler 4b41fdb586
Fast(ish) special purpose bitbang spi over i2c
with the i2c bus operating at 400kHz this achieves a 4.8kHz SPI clock
rate which could be worse.

It accepts the same style of init sequence as displayio.

tested by scoping the pins on the espressif lcd dev kit with a dummy init sequence:
```python
dotclockframebuffer.ioexpander_send_init_sequence(
    bus=bus,
    i2c_address=expander_addr,
    gpio_address=1,
    gpio_data_len=1,
    gpio_data=0xff,
    cs_bit=1,
    mosi_bit=3,
    clk_bit=2,
    init_sequence=init_sequence)
```
2023-09-14 14:42:48 -05:00
Jeff Epler 0e78ab6ed5
rgbmatrix: document MTX_ADDRESS and MTX_COMMON 2023-09-14 10:38:01 -05:00
Jeff Epler 9b20e31cf4
rgbmatrix: also explain the order of rgb and addr pins 2023-09-14 10:23:13 -05:00
Jeff Epler 18041ea596
rgbmatrix: more small doc improvements
* Not all ports support 30 RGB pins etc
 * Link to the guide page on laying out multiple panels
2023-09-14 10:20:10 -05:00
Dan Halbert 9f1d52601e merge from 8.2.x 2023-09-12 20:14:30 -04:00
Dan Halbert d8aeceb706 SSLContext.load_verify_locations - no kw-only args 2023-09-12 12:45:46 -04:00
Scott Shawcroft 885dbec599
Merge pull request #8357 from eightycc/memorymap
Add memorymap support to RP2 port
2023-09-08 11:28:11 -07:00
Bob Abeles 0e0941d6fd Review changes 2023-09-07 16:45:45 -07:00
Jeff Epler c3c2b84584
fix typo, copyright notice 2023-09-07 12:57:45 -05:00
Bob Abeles 1e178318cf review update, add RP2040 example 2023-09-06 19:59:40 -07:00
Bob Abeles 66b3eccaf6 8334: RP2040 lacks raw memory map access 2023-08-31 20:25:20 -07:00
Jeff Epler 80a1d1a20a
Add support for a non-displayed left portion of screen 2023-08-31 14:52:26 -05:00
Jeff Epler ed9cacf41d
Add DotClockFramebuffer 2023-08-30 10:30:15 -05:00
Bobby Jap ae181d69af Update wrappers to use new gzip changes 2023-08-28 21:59:00 -07:00
Scott Shawcroft 233cf7fc6d
Merge pull request #8326 from bill88t/picow-stop-ap
Pico W wifi code improvements.
2023-08-25 09:49:04 -07:00
Scott Shawcroft ab70f8eace
Merge remote-tracking branch 'adafruit/main' into i2s_mclk 2023-08-24 15:07:14 -07:00
Bill Sideris e3314ef7a6
Add new picow doc notes 2023-08-23 22:12:19 +03:00
Dan Halbert e08ad22ef6
Merge pull request #8317 from jepler/merge-82x
Merge 8.2.x into main
2023-08-22 17:28:30 -04:00
Jeff Epler 6e8a59a948
Merge remote-tracking branch 'origin/8.2.x' into merge-82x 2023-08-22 14:10:29 -05:00
Jeff Epler c1dce99be9
Link to dedicated guide for rgbmatrix 2023-08-22 10:55:55 -05:00
Jeff Epler e336dc90cf
update explanation of height; it is optional 2023-08-22 10:53:10 -05:00
Jeff Epler 2dcc0d2a62
further explain width and height, it can't hurt 2023-08-22 10:46:34 -05:00
Jeff Epler 81ad2e05ba
address review comments 2023-08-22 10:44:35 -05:00
Jeff Epler 485924896e
RGBMatrix: document constructor arguments
Closes: #8283
2023-08-22 10:31:09 -05:00
Jeff Epler bae7e5292e
Merge pull request #8298 from jepler/canio-doc-mcp2515
canio: add a doc note about boards like CAN feather that use mcp2515
2023-08-22 09:48:09 -05:00
Jeff Epler c029d6a165
Merge remote-tracking branch 'origin/8.2.x' into merge-82x 2023-08-22 08:49:16 -05:00
Dan Halbert 8157920d10
Merge pull request #8312 from jepler/fix-sphinx-82x
Use the ".. jinja" tag to render support_matrix template
2023-08-21 23:46:25 -04:00
Jeff Epler 2fc413db24
Use the ".. jinja" tag to render support_matrix template
.. and remove the substring check for the file.

this fixes the problem with sphinx 7.2.2 that the "docname" can
be None (see https://github.com/sphinx-doc/sphinx/issues/11620)
2023-08-21 21:34:14 -05:00
Jeff Epler d23ddff971
Add several constants needed to use multicast UDP
This was verified by @todbot to work on esp32 s2 and s3;
the constant should match any system that uses LWIP numbering.
2023-08-21 16:19:58 -05:00
Jeff Epler 994bd2371f
canio: add a doc note about boards like CAN feather that use mcp2515 2023-08-19 12:07:07 -05:00
Dan Halbert 10a022db87 consolidate and shorten some error messages 2023-08-19 12:39:54 -04:00
Dan Halbert 6851faacaa Merge remote-tracking branch 'adafruit/main' into merge-micropython-v1.19.1 2023-08-18 13:29:39 -04:00
Scott Shawcroft f93022b142
Two tweaks to mclk 2023-08-17 14:28:33 -07:00
Scott Shawcroft 8c5c73df38
Add I2S MCLK support to iMX RT 2023-08-17 11:39:14 -07:00
Dan Halbert 8cf5b6e707 fixes to unix port support; thanks @jepler 2023-08-14 09:51:52 -04:00
Dan Halbert d582407b06 pre-commit fixes 2023-08-14 00:59:22 -04:00
Dan Halbert 2171e67c1b merge latest adafruit/main 2023-08-13 19:43:54 -04:00
Dan Halbert 850877a85f wip; fix generators; typos 2023-08-13 00:30:59 -04:00
Dan Halbert 10b94796c0 wip; fix more m_malloc and gc_alloc 2023-08-11 00:30:34 -04:00
Dan Halbert fe0e2f13bc wip; fix qstr processing 2023-08-10 20:06:32 -04:00
Melissa LeBlanc-Williams db23a9c9fe Disable floppyio for feather m4 express + update docstring 2023-08-09 09:15:17 -07:00
Dan Halbert 2ff8667e75 wip; remove long-lived functionality; remove PR#2614
Trinket M0 compile has no compilation errors, but has link errors to fix.
2023-08-08 20:41:17 -04:00
Melissa LeBlanc-Williams ea39d7089f Updated docstring stuff 2023-08-08 14:21:55 -07:00
Melissa LeBlanc-Williams b25d3131a3 Update doc string 2023-08-08 12:54:14 -07:00
Melissa LeBlanc-Williams 549bbdc31c Alphablend changes 2023-08-08 12:42:48 -07:00
Dan Halbert 0d2c3c3f08 wip: continuing compilation fixes; mp_obj_alloc everywhere 2023-08-07 20:45:57 -04:00
Jeff Epler ddeb27d335
the note is in its attack phase 2023-08-04 18:40:30 -05:00
Scott Shawcroft 9152659912
Merge remote-tracking branch 'adafruit/main' into cache_config_desc 2023-08-03 13:37:53 -07:00
Scott Shawcroft 59e6cab252
Cache configuration descriptor
We use it to open endpoints as they are used. Fetching the descriptor
as needed can cause issues with devices that we're expecting a control
packet while another transaction was ongoing. Specifically, a usb
thumb drive didn't expect a control transaction while doing a SCSI
transaction.

This PR also aborts transactions on timeout or ctrl-c interrupt. It
doesn't always recover though...
2023-08-02 14:26:11 -07:00
Jeff Epler 16937b8a0d
Fix markup of bitmaptools.blit stubs
this prevented bitmaptools.blit from properly appearing in documentation.
2023-08-02 10:54:47 -05:00
Dan Halbert 0d4bc8c163 initial v1.19.1 merge; not compiled yet 2023-08-01 13:50:05 -04:00
Scott Shawcroft 03261fe188
Merge pull request #8191 from gaweng/main
displayio: added Mapping to bits_per_value getter
2023-07-24 10:18:56 -07:00
Scott Shawcroft be0028ec16
Merge pull request #8192 from gaweng/ssl
ssl: Mapping python None to NULL in cadata var
2023-07-24 10:18:09 -07:00
Scott Shawcroft 516a242344
Merge pull request #8208 from dhalbert/8.2.x-backport-8180-ip4v-addressdoc
8.2.x backport: docs:  wifi.radio.ipv4_address_ap is read-only
2023-07-24 10:09:46 -07:00
Scott Shawcroft 44c6563028
Merge pull request #8206 from dhalbert/8.2.x-backport-8169-getenv-notimplemented
8.2.x backport: throw an exception if os.getenv is used on a board without settings.t…
2023-07-24 10:08:34 -07:00
Scott Shawcroft 613dda89f2
Merge pull request #8205 from dhalbert/8.2.x-backport-8165-network-docs
8.2.x backport 8165 network docs
2023-07-24 10:07:58 -07:00
anecdata bbf5e67fbb docs: wifi.radio.ipv4_address_ap is read-only 2023-07-23 12:24:22 -04:00
Jeff Epler aba171656d throw an exception if os.getenv is used on a board without settings.toml support 2023-07-23 12:16:06 -04:00
anecdata 939149bb2f formatting fix 2023-07-23 12:10:02 -04:00
anecdata 104cf0bb3a raspberrypi: start AP before set IPv4 2023-07-23 12:10:02 -04:00
anecdata 3d212f70eb mdns: can't use web workflow port 2023-07-23 12:10:02 -04:00
Jim Mussared 90ec0f2ee0 shared-bindings/zlib: Fix docs for zlib.decompress.
The docs say the method is called `zlib_decompress` but should be
just `decompress`.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2023-07-23 10:08:31 -04:00
Gaweng Tan 8140d0cb03 Mapping python None to NULL in cadata var 2023-07-22 14:34:06 +02:00
Gaweng Tan e58496feb2 added Mapping to bits_per_value getter 2023-07-22 13:26:34 +02:00
Scott Shawcroft 924422eff8
Merge remote-tracking branch 'adafruit/main' into three_small 2023-07-21 09:37:26 -07:00
Jeff Epler 60b233f160
document EnvelopeState 2023-07-20 16:26:07 -05:00
Jeff Epler 29a4364ba7
fix method signature 2023-07-20 14:05:56 -05:00
Scott Shawcroft 5f082561b3
Unify some error strings 2023-07-20 11:20:32 -07:00
Jeff Epler 346f08f8b9
synthio: Add Synthesizer.note_state
This enables the specific use case of checking whether a note's release
phase has ended, but is also potentially useful to implement a sort of
"voice stealing" algorithm in Python code, which can take account of
the note's envelope state as well as other factors specific to the
program.
2023-07-20 13:16:00 -05:00
Jeff Epler f15eceb24c
Document more classes that can be separately enabled 2023-07-20 11:16:49 -05:00
Jeff Epler 6a2499227a
render the board support list within the docs of os.getenv 2023-07-20 11:16:48 -05:00
Scott Shawcroft 305303996d
Merge pull request #8182 from tannewt/usb_host_singleton
Make usb_host.Port a singleton
2023-07-19 15:04:19 -07:00
Dan Halbert 74eb360922
Merge pull request #8143 from kolkmvd/ShiftRegister-multi-data-pin
Extended ShiftRegisterKeys to support multiple data pins with shared clock and latch
2023-07-18 23:30:13 -04:00
Jeff Epler 3ec9f8a118
Merge pull request #8136 from FoamyGuy/blit_skip_self_index
adding skip_self_index argument to bitmap.blit()
2023-07-18 15:17:28 -05:00
Scott Shawcroft 1629faf8b3
Make usb_host.Port a singleton
This allows you to initialize usb_host.Port once successfully and
then returns the same object as long as you pass the same arguments
in. It does allow you to fix incorrect pins but not switching from
one valid set to another. (It needs a reset for that.)

This also moves hcd cache operations to RAM so that they don't
access the cache when doing maintenance.
2023-07-18 10:40:54 -07:00
Scott Shawcroft a2002e364c
Merge pull request #8165 from anecdata/wifi_docs
Networking docs updates: Access Point, MDNS
2023-07-17 14:58:28 -07:00
Scott Shawcroft 2a83657b6f
Merge pull request #8161 from jepler/usb_host_keyboard
usb host: add keyboard map control in usb workflow
2023-07-17 14:57:13 -07:00