Commit Graph

1150 Commits

Author SHA1 Message Date
Sylwester d84c69c056 Add NeoPixel Library for Datanoise PicoADK. 2023-07-23 12:14:13 -04:00
Sylwester a4b4f57ff1 Add Datanoise PicoADK 2023-07-23 12:07:30 -04:00
Sylwester b87ceb26aa Add Datanoise PicoADK 2023-07-23 12:07:30 -04:00
Petr Sedlacek df821bf22c Update 42. Keebs Frood support for Rev7 2023-07-23 11:59:49 -04:00
Leah Post 317cab87a7 Add new board: splitkb.com's Liatris 2023-07-23 11:57:44 -04:00
MicroDev b6d4488b31 fix set hostname 2023-07-23 11:56:05 -04:00
Jeff Epler 9a9fe1240d update metro rp2040 to work with 16MB flash 2023-07-23 10:05:54 -04:00
Dan Halbert 391bb1c45f Add Adafruit Metro RP2040 2023-07-23 10:00:56 -04:00
Scott Shawcroft 5f082561b3
Unify some error strings 2023-07-20 11:20:32 -07: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
Jeff Epler 4f09078293
update metro rp2040 to work with 16MB flash 2023-07-17 12:56:55 -05:00
Scott Shawcroft 4e01674cbd
Fix rp2 safe mode via reset press
The picodvi PR #7880 switched the saved word to the watchdog
register since it reworked the RAM layout. This works for
reset_into_safe_mode because the watchdog scratch registers are
preserved by soft resets. They *aren't* preserved for pressing the
reset button. So it broken manual safe mode. Switch back to using
RAM to store the saved word but use the pico-sdks "uninitialized"
designation instead of a fixed location.

Also fixes USB host feather status neopixel by setting the power
pin.
2023-07-13 14:49:08 -07:00
Sylwester 3ac84281bf Add NeoPixel Library for Datanoise PicoADK. 2023-07-13 12:04:27 +02:00
Jeff Epler 6b5cf5537a
Merge pull request #8035 from dhalbert/metro-rp2040
Add Adafruit Metro RP2040
2023-07-12 10:40:37 -05:00
Scott Shawcroft 346ec8d4a8
Merge pull request #8156 from DatanoiseTV/datanoise_picoadk
Add Datanoise PicoADK Board
2023-07-11 11:01:28 -07:00
Scott Shawcroft 7764cde6c2
Merge pull request #8155 from tannewt/imx_usb_host
Basic USB host support and keyboard workflow
2023-07-11 09:50:09 -07:00
Sylwester 9b80943885 Add Datanoise PicoADK 2023-07-11 10:01:46 +02:00
Sylwester 449416f5e1 Add Datanoise PicoADK 2023-07-11 09:52:47 +02:00
Scott Shawcroft 52ca0504d9
Comment out debug UART on RP2040 USB host feather 2023-07-10 15:37:57 -07:00
Petr Sedlacek ae84441575 Update 42. Keebs Frood support for Rev7 2023-07-10 23:32:02 +02:00
Scott Shawcroft 2686beab36
Basic USB host support and keyboard workflow
Connects up read, write and ctrl_transfer to TinyUSB. USB Host
support is available on iMX RT and RP2040.

Fixes #6527 (imx) and fixes #5986 (rp2).
2023-07-10 14:22:21 -07:00
Scott Shawcroft 9f3f2aabff
Merge pull request #8152 from splitkb/liatris
Add new board: splitkb.com's Liatris
2023-07-10 12:07:27 -07:00
Leah Post 036eca8123 Add new board: splitkb.com's Liatris 2023-07-10 14:45:08 +02:00
MicroDev 8704ba158b
fix set hostname 2023-07-09 21:25:37 +05:30
Jeff Epler 385366128f
Don't use "cookie" variable/function name 2023-06-27 09:59:02 -05:00
Jeff Epler b4be2317cb
rp2040: Avoid screeches due to audio underflow during flash writes
By pausing audio during flash writes, the worst screeching of #8121
is avoided. I don't consider this a full fix, but it greatly improves
the by far most common scenario in which the problem occurs.

Tested on rp2040 prop feather with a midi synth playing arpeggios. When
writing to the flash e.g., with
```
dd bs=512 count=32 if=/dev/zero of=/media/jepler/CIRCUITPY/boop
```
the audio goes "tap tap tap tap" during the flash write instead of the
squawking.

This isn't a 100% fix; it will still glitch out, including during USB
enumeration which must be taking a long time without servicing background
tasks. Add a delay if not usb-connected at startup ameliorates this
greatly.
2023-06-26 10:34:29 -05:00
Dan Halbert 540bf58102 improve start_ap() doc; make "authmode" use consistent internally 2023-06-22 16:24:18 -04:00
Bill Sideris 112f0fd767
Add `-Wno-undef` to rp2 makefile for sdk 2023-06-21 01:43:10 +03:00
Bill Sideris e139cd9ec0
Update cyw43 to 1.0.1 2023-06-21 01:35:52 +03:00
Bill Sideris 0aa7854d5b
Update pico-sdk to 1.5.1 2023-06-19 18:00:49 +03:00
Mario Bodemann 1e3f1d745a Update badger2040 start sequence for more contrast
This change is taken from the pico-sdk: https://github.com/pimoroni/pimoroni-pico/blob/main/drivers/uc8151_legacy/uc8151_legacy.cpp#L67-L120 and increases the contrast of pictures sent dramatically. It comes with the expense of using way more time when updating though.
2023-06-08 18:25:45 +02:00
Dan Halbert 38f6fa27e3 fetch-port-submodules; fetch-all-submodules 2023-06-05 17:23:34 -04:00
Dan Halbert 3a893594b2 Add Adafruit Metro RP2040 2023-05-26 12:42:23 -04:00
phamhuyvn 2d7fa6dd8a
Update pins.c
Fixed Button_R from GPIO6 to GPIO7
Fixed LCD_BACKLIGHT from GPIO29 to GPIO26
2023-05-24 08:44:57 +07:00
Scott Shawcroft 3f7e6db4fa
Merge pull request #8015 from dhalbert/rp2040-sleep-memory
RP2040 SleepMemory
2023-05-22 13:08:37 -07:00
Dan Halbert 955d2723d0 RP2040 SleepMemory 2023-05-21 19:05:25 -04:00
rcarteraz a4a4bdfeb0
Update board.c
Change column start from 52 to 53 to fix a line at the top of the display.
2023-05-20 18:33:37 -07:00
Dan Halbert f2bfced407
Merge pull request #7976 from anecdata/ap_ipv4_picow
Allow Access Point static IPv4 on the raspberrypi port
2023-05-16 18:45:22 -04:00
Dan Halbert d945d8b6e0
Merge pull request #7988 from Neradoc/add-feather-rp2040-button-pin
Add the Feather RP2040 boot button to the board module ?
2023-05-16 18:41:15 -04:00
Dan Halbert ab83c98c1d
Merge pull request #7982 from bill88t/picow-stop-ap
Await `CYW43_LINK_DOWN` in `stop_station`
2023-05-16 12:31:46 -04:00
Bill Sideris 95c1d849d3
Just 500
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2023-05-16 04:47:44 +03:00
Bill Sideris ed31c7dc8f
Await down on stop_station 2023-05-15 22:38:59 +03:00
anecdata 4ac7e7643a
netutils dhcp server 2023-05-14 17:44:27 -05:00
anecdata 6dd2e86727
remove dhcp calls 2023-05-14 14:52:49 -05:00
anecdata cd41fb101a
oops 2023-05-13 22:55:08 -05:00
anecdata 8196366c94 initial 2023-05-13 22:06:16 -05:00
Neradoc 16c8c9a739 Add the Feather RP2040 button to the board module 2023-05-13 22:13:47 +02:00
Eric Rong 91380f1957
Update to use new display construct. 2023-05-12 22:28:11 -07:00
Eric Rong 22665a113d
Merge branch 'adafruit:main' into lilygo_t_display_rp2040 2023-05-12 22:02:16 -07:00
Eric Rong 49a5518bd3
Attempt to fix build error 2023-05-12 18:19:49 -07:00
Eric Rong 285131a87a
Update typo on pin GP2 2023-05-12 18:04:07 -07:00
Eric Rong 8a3dc92920
Update with the official VID/PID for CircuitPython 2023-05-12 17:45:33 -07:00
Dan Halbert 827eaeb1f9
Merge pull request #7962 from tannewt/inky_frame_5_7
Add Pimoroni Inky Frame 5.7
2023-05-12 18:22:42 -04:00
Scott Shawcroft db8bd56c6c
Merge pull request #7946 from anecdata/ap_ipv4
Allow Access Point static IPv4 on the espressif port
2023-05-12 08:47:07 -07:00
Scott Shawcroft cbfb2d0f55
Add Pimoroni Inky Frame 5.7
Tweak DTCM and ITCM loading and prevent epd refresh while waiting
for autoreload.
2023-05-11 12:12:34 -07:00
Alex Sirota 55d8f0db4e Add board.DISPLAY to hack_club_sprig 2023-05-10 11:24:26 -07:00
anecdata 29bf64decb raspberrypi common-hal f(x)s Not Implemented 2023-05-08 22:41:33 -05:00
Scott Shawcroft 9e4dea7b15
Merge pull request #7933 from jepler/synthio-note
synthio: add 'Note' with arbitrary frequency and more
2023-05-08 13:32:37 -07:00
Scott Shawcroft fa9b59d14c
Merge pull request #7915 from RetiredWizard/picodvi
Add Pimoroni Pico dv Demo Base (pico only)
2023-05-04 10:07:48 -07:00
Jeff Epler a388a59543
rp2040: fix audio glitch at soft-reload
The internal flash cache wasn't being properly used, because
`write_blocks` unconditionally performed the flash write.

Fixing this so that the write's not done until `internal_flash_flush`
fixes the problem in my test program with i2sout & synthio.

as a future optimization, `flash_read_blocks` could learn to read out
of the cache, but that's probably not super important.
2023-05-04 08:41:23 -05:00
RetiredWizard 4f7d88676b Remove pico-w version 2023-05-03 17:30:01 -04:00
Liz 480c4f1081
Update pins.c 2023-05-02 17:27:53 -04:00
Liz facd3a4e78 Updating directory name 2023-05-02 17:07:49 -04:00
Liz cba7a812fc Minor update for Feather RP2040 ThinkInk
hihi - updating board name from EPD to ThinkInk and adding pin def for board.BUTTON
2023-05-02 17:02:59 -04:00
Scott Shawcroft 750615f2da
Merge pull request #7430 from Lanzaa/rp2040_cpu_frequency
Add frequency setting for RP2040 boards.
2023-05-02 09:52:28 -07:00
Scott Shawcroft 488dca565f
Merge pull request #7922 from tannewt/dvi320
Take in framebuffer resolution, not output res
2023-05-02 09:22:51 -07:00
Jeff Epler 80e1418c01
Merge pull request #7921 from tannewt/imx_evks
Add additional iMX RT support
2023-05-02 07:09:50 -05:00
Scott Shawcroft 0aa71ed6e6
Tweak the picodvi docs and arg checking 2023-05-01 11:30:04 -07:00
Scott Shawcroft b08714bb8f
Take in framebuffer resolution, not output res
Fixes #7911
2023-04-28 17:13:17 -07:00
Scott Shawcroft 1a4e1d114c
Merge pull request #7916 from bablokb/badger_2040_w
Add support for Pimoroni Badger2040W
2023-04-28 16:42:03 -07:00
Scott Shawcroft 8104b824e0
Standardize CPU temp and voltage. Add autogen warning 2023-04-28 16:19:43 -07:00
RetiredWizard 1fb6d4d77e I2S pin names per Dan's suggestions on iMX PR 2023-04-28 16:58:39 -04:00
Bernhard Bablok 14c17224a1 update product-id 2023-04-28 08:57:22 +02:00
Bernhard Bablok 4f8ae14c18 update to upstream version 2023-04-28 08:56:52 +02:00
Bernhard Bablok a86c5f7310 Merge branch 'main' into plasma2040w 2023-04-28 08:41:02 +02:00
Bernhard Bablok ec6fde91ad integrate latest changes from upstream 2023-04-27 18:14:46 +02:00
Bernhard Bablok cc3d61eb49 fixed merge conflicts 2023-04-27 13:23:34 +02:00
RetiredWizard 12f59b4948 pre-commit formatting 2023-04-26 21:14:57 -04:00
RetiredWizard aba4c50e74 Add adafruit_sdcard as frozen library 2023-04-26 21:08:28 -04:00
RetiredWizard 5d0c37f198 Rename folders and add VID/PID from Pimoroni 2023-04-26 17:45:59 -04:00
RetiredWizard 4214f2bb77
Rename ports/raspberrypi/boards/pimoroni_pico_dv to ports/raspberrypi/boards/pimoroni_pico_dv_base 2023-04-26 11:01:56 -04:00
Dan Halbert 34f565dd89
Merge pull request #7891 from tannewt/fix_epd_uc
Add address_little_endian and fix display memory reuse
2023-04-26 00:27:59 -04:00
Dan Halbert be6e90c0ed
Merge pull request #7877 from dhalbert/rp2040-propmaker
Add Adafruit Feather RP2040 Prop-Maker
2023-04-26 00:23:49 -04:00
Dan Halbert 95acec0f55 Improve pin names 2023-04-25 13:22:42 -04:00
Neradoc 2bee4926f9 Fix Scorpio on-board neopixel pin 2023-04-25 17:22:04 +02:00
RetiredWizard 076cd1fab4
Nope, can't use the COSMO-pico vid/pid pair
Setting back, at least temporarily to the Adafruit pair.
2023-04-25 11:14:48 -04:00
RetiredWizard 361608119c
Change VID/PID to be Raspberry Pi values
Spotted the Cosmo_pico port on circuitpython.org which is the same class of device as the Pimoroni PICO dv so I'm switching the VID/PID to use the Raspberry Pi owned values rather than the Adafruit values just as the Como device uses.
2023-04-25 10:33:13 -04:00
Dan Halbert 2b95fc3029
Merge pull request #7893 from tannewt/fix_rp2040_idle
Fix RP2040 idle
2023-04-24 13:53:12 -04:00
Dan Halbert b9c7cd4028
describe instance more precisely 2023-04-24 12:58:40 -04:00
David Glaude 6aa3e7d8a6
This is about picodvi not rgbmatrix
There might be another way or other place where the documentation does not match the code.
But this is the most obvious, that's why I found it.
2023-04-23 10:58:02 +02:00
Scott Shawcroft b59f0e17be
Fix RP2040 idle
Don't idle from main if we scheduled an interrupt for 0 ticks in
the future.

Have RP2040 detect wakes that happen between setting the timer and
the idle call.

Fixes #7361
2023-04-21 16:04:23 -07:00
Scott Shawcroft b16037859c
Fix native epd boards 2023-04-21 14:36:35 -07:00
Scott Shawcroft d5b747b305
Fix board inits 2023-04-21 13:23:01 -07:00
RetiredWizard b3c8575b81 Update for Pimoroni Pico dv pins/connectors 2023-04-20 21:22:39 -04:00
Scott Shawcroft 0f9fb33371
Merge branch 'main' into rp2040_cpu_frequency 2023-04-19 17:05:58 -07:00
Scott Shawcroft e2ab7a4751
Change voltage. Refine docs 2023-04-19 17:04:54 -07:00
Scott Shawcroft 13bb801211
Fix docs and windows 2023-04-19 15:42:02 -07:00
Scott Shawcroft 66edcf5d03
Add PicoDVI support
PicoDVI in CP support 640x480 and 800x480 on Feather DVI, Pico and
Pico W. 1 and 2 bit grayscale are full resolution. 8 and 16 bit
color are half resolution.

Memory layout is modified to give the top most 4k of ram to the
second core. Its MPU is used to prevent flash access after startup.

The port saved word is moved to a watchdog scratch register so that
it doesn't get overwritten by other things in RAM.

Right align status bar and scroll area. This normally gives a few
pixels of padding on the left hand side and improves the odds it is
readable in a case. Fixes #7562

Fixes c stack checking. The length was correct but the top was being
set to the current stack pointer instead of the correct top.
Fixes #7643

This makes Bitmap subscr raise IndexError instead of ValueError
when the index arguments are wrong.
2023-04-19 15:14:02 -07:00
Dan Halbert 7567082965 Add Adafruit Feather RP2040 Prop-Maker 2023-04-18 15:52:06 -04:00
Bernhard Bablok 2a49567ec6 added Adafruit_CircuitPython_Register to frozen libs 2023-04-17 19:03:42 +02:00