Imported from GitHub: diva-eng/diva-card · commit 1847dd3 · license MIT
Description
Raspberry Pi 2040 based development board/card
README
Diva Card example firmware (Arduino RP2040)
This folder contains a simple example firmware for the Diva Card RP2040-based board. It demonstrates:
- USB-Serial logging at 115200
- Initializing and toggling the user LED (GPIO9)
- Initializing I2C (Wire) and scanning for the Microchip ATECC608A at address
0x60 - A placeholder pin for WS2812 data (
GPIO10).
Build with PlatformIO (recommended for setting custom VID/PID):
-
Install PlatformIO extension for VS Code or use
pioCLI. -
Edit
platformio.inito set your desired USB VID/PID:board_build.usb_vendor_id = 0x1234board_build.usb_product_id = 0xABCD
Replace the hex values with your vendor/product IDs.
-
Build and upload:
pio run -e raspberrypi_pico -t upload
pio device monitor -e raspberrypi_pico
Notes:
- The board schematic maps
I2C0_SDAtoGPIO2andI2C0_SCLtoGPIO3—Wire.begin()uses those defaults. - The example initializes the I2C bus and then uses Microchip's
cryptoauthlibto talk to the ATECC608A. The sketch callsatcab_init,atcab_wakeup,atcab_read_serial_number, andatcab_sleep(the library is fetched by PlatformIO viaplatformio.ini). - If you prefer the Arduino IDE / Arduino CLI, building with a custom VID/PID is platform/core dependent; PlatformIO makes it easy via
platformio.ini.
No comments yet. Be the first to ask about this board.