6 Commits

Author SHA1 Message Date
oxygen
ebfe9b1ed4 Merge branch 'polhenarejos:main' into main 2026-01-29 13:44:15 +08:00
Pol Henarejos
370be2cd47 Upgrade to v7.4
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
2026-01-28 00:57:51 +01:00
Pol Henarejos
524deea038 Upgrade Pico Keys SDK 8.4
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
2026-01-28 00:57:38 +01:00
oxygen
954fe3ac8b Merge branch 'polhenarejos:main' into main 2026-01-26 19:32:32 +08:00
oxygen
46ed09a75e Merge branch 'polhenarejos:main' into main 2026-01-20 20:53:02 +08:00
daimiaopeng
c5d12bead4 Add support for RP2350-One LED driver. 2026-01-02 01:05:13 +08:00
4 changed files with 23 additions and 3 deletions

View File

@@ -75,6 +75,13 @@ else()
endif()
set(USB_ITF_HID 1)
option(WAVESHARE_RP2350_ONE "Enable Waveshare RP2350-One LED support" OFF)
if(WAVESHARE_RP2350_ONE)
add_definitions(-DWAVESHARE_RP2350_ONE=1)
message(STATUS "Waveshare RP2350-One: \t enabled")
endif()
include(pico-keys-sdk/pico_keys_sdk_import.cmake)
if(NOT ESP_PLATFORM)

View File

@@ -75,6 +75,7 @@ PICO_SDK_PATH=/path/to/pico-sdk cmake .. -DPICO_BOARD=board_type -DUSB_VID=0x123
make
```
Note that `PICO_BOARD`, `USB_VID` and `USB_PID` are optional. If not provided, `pico` board and VID/PID `FEFF:FCFD` will be used.
For Waveshare RP2350-One board, add `-DWAVESHARE_RP2350_ONE=ON` to enable RGB LED support on GPIO 16.
Additionally, you can pass the `VIDPID=value` parameter to build the firmware with a known VID/PID. The supported values are:
@@ -118,6 +119,18 @@ While processing, the Pico FIDO is busy and cannot receive additional commands u
![Processing](https://user-images.githubusercontent.com/55573252/162009007-df45111e-2473-4a92-97c5-15c3cd19babd.gif)
### Waveshare RP2350-One RGB LED
The Waveshare RP2350-One uses a WS2812 RGB LED on GPIO 16. Different colors indicate different states:
| State | Color | Pattern |
| ---------------- | --------- | ------------------------------- |
| Not mounted | 🔴 Red | 500ms on / 500ms off |
| Mounted (active) | 🟢 Green | 500ms on / 500ms off |
| Suspended (idle) | 🔵 Blue | 1000ms on / 2000ms off |
| Processing | 🟢 Green | 50ms on / 50ms off (fast blink) |
| Press to confirm | 🟡 Yellow | 1000ms on / 100ms off |
## Driver
Pico FIDO uses the `HID` driver, which is present in all operating systems. It should be detected by all OS and browser/applications just like normal USB FIDO keys.

View File

@@ -22,13 +22,13 @@ cd ../..
mkdir build_pico
cd build_pico
cmake -DPICO_SDK_PATH=../pico-sdk ..
make -j`nproc`
make
cd ..
elif [[ $1 == "esp32" ]]; then
sudo apt install -y git wget flex bison gperf python3 python3-pip python3-venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0
git clone --recursive https://github.com/espressif/esp-idf.git
cd esp-idf
git checkout tags/v5.5.1
git checkout tags/v5.5
./install.sh esp32s3
. ./export.sh
cd ..