MSR RP2040 Brain 124 v0.1
Prototype board
Features
- Jacdac on pin 9 using Jacdac connector
- RGB LED on pins 16, 14, 15 (use setStatusLight to control)
- Serial logging on pin 0 at 115200 8N1
- Service: power (auto-start)
caution
I2C pins are not configured.
Stores
Pins
pin name | hardware id | features |
---|---|---|
P1 | GPIO1 | io |
P10 | GPIO10 | io |
P2 | GPIO2 | io |
P24 | GPIO24 | io |
P25 | GPIO25 | io |
P26 | GPIO26 | analogIn, io |
P27 | GPIO27 | analogIn, io |
P28 | GPIO28 | analogIn, io |
P29 | GPIO29 | analogIn, io |
P3 | GPIO3 | io |
P4 | GPIO4 | io |
P5 | GPIO5 | io |
P6 | GPIO6 | io |
P7 | GPIO7 | io |
jacdac.pin | GPIO9 | jacdac.pin, io |
led.rgb[0].pin | GPIO16 | led.rgb[0].pin, io |
led.rgb[1].pin | GPIO14 | led.rgb[1].pin, io |
led.rgb[2].pin | GPIO15 | led.rgb[2].pin, io |
log.pinTX | GPIO0 | log.pinTX, io |
services.power[0].pinEn | GPIO22 | services.power[0].pinEn, io |
services.power[0].pinFault | GPIO12 | services.power[0].pinFault, io |
services.power[0].pinLedPulse | GPIO13 | services.power[0].pinLedPulse, io |
services.power[0].pinPulse | GPIO8 | services.power[0].pinPulse, io |
services.power[0].pinUsbDetect | GPIO11 | services.power[0].pinUsbDetect, io |
DeviceScript import
You must add this import statement to load the pinout configuration for this device.
In Visual Studio Code, click the wand icon on the file menu and select "MSR RP2040 Brain 124 v0.1".
import { pins, board } from "@dsboard/msr124"
Firmware update
In Visual Studio Code, select DeviceScript: Flash Firmware... from the command palette.
Run this command line command and follow the instructions.
devicescript flash --board msr124
Configuration
msr124.json
{
"$schema": "https://raw.githubusercontent.com/microsoft/devicescript-pico/main/boards/rp2040deviceconfig.schema.json",
"id": "msr124",
"devName": "MSR RP2040 Brain 124 v0.1",
"productId": "0x3875e80d",
"$description": "Prototype board",
"archId": "rp2040",
"jacdac": {
"$connector": "Jacdac",
"pin": 9
},
"led": {
"rgb": [
{
"mult": 250,
"pin": 16
},
{
"mult": 60,
"pin": 14
},
{
"mult": 150,
"pin": 15
}
]
},
"log": {
"baud": 115200,
"pinTX": 0
},
"pins": {
"@HILIM": 18,
"P1": 1,
"P10": 10,
"P2": 2,
"P24": 24,
"P25": 25,
"P26": 26,
"P27": 27,
"P28": 28,
"P29": 29,
"P3": 3,
"P4": 4,
"P5": 5,
"P6": 6,
"P7": 7
},
"sPin": {
"#": "enable high power limiter mode",
"@HILIM": 0
},
"services": [
{
"faultIgnoreMs": 1000,
"mode": 3,
"name": "power",
"pinEn": 22,
"pinFault": 12,
"pinLedPulse": 13,
"pinPulse": 8,
"pinUsbDetect": 11,
"service": "power"
}
]
}