https://github.com/kassane/rp2040-dlang
Use D programming language in Raspberry Pi Pico and other RP2040 boards
https://github.com/kassane/rp2040-dlang
d dlang embedded-systems pico raspberry-pi-pico rp2040 wokwi
Last synced: 7 months ago
JSON representation
Use D programming language in Raspberry Pi Pico and other RP2040 boards
- Host: GitHub
- URL: https://github.com/kassane/rp2040-dlang
- Owner: kassane
- License: bsl-1.0
- Created: 2024-11-11T16:38:01.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-02T16:46:16.000Z (over 1 year ago)
- Last Synced: 2025-03-01T11:17:27.694Z (over 1 year ago)
- Topics: d, dlang, embedded-systems, pico, raspberry-pi-pico, rp2040, wokwi
- Language: D
- Homepage:
- Size: 54.7 KB
- Stars: 4
- Watchers: 0
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rp2040-dlang
Use D programming language in Raspberry Pi Pico and other RP2040 boards
## Requirements
- [Raspberry Pi Pico SDK](https://github.com/raspberrypi/pico-sdk)
- [ARM GCC toolchain](https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads) - for `rp2040` & `rp2350-arm-s` platforms
- [pico-sdk-tools/riscv-toolchain](https://github.com/raspberrypi/pico-sdk-tools/releases) - for `rp2350-riscv` platform
- [D compiler](https://dlang.org/download.html) - preferred **GDC** or **LDC2**
- [CMake](https://cmake.org/download/)
## How to build
```bash
git clone --recursive https://github.com/raspberrypi/pico-sdk.git
export PICO_SDK_PATH=$PWD/pico-sdk
export PICO_PLATFORM=rp2040
export PICO_TOOLCHAIN_PATH=/path/gcc-arm-none-eabi-(version) # or add it to PATH
export DC=gdc
# or
export DC=ldc2
```
```bash
git clone https://github.com/kassane/rp2040-dlang.git
cd rp2040-dlang
cmake -B build # optional -DBETTERC=ON
cmake --build build
```
[Wokwi preview - running blinkly from RP2040-dlang](https://wokwi.com/experimental/viewer?diagram=https%3A%2F%2Fraw.githubusercontent.com%2Fkassane%2Frp2040-dlang%2Frefs%2Fheads%2Fmain%2Fdiagram.json&firmware=https%3A%2F%2Fgithub.com%2Fkassane%2Frp2040-dlang%2Freleases%2Fdownload%2Fv1.0.0%2Fd-blinky-rp2040.uf2)
