Skip to main content

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 namehardware idfeatures
P1GPIO1io
P10GPIO10io
P2GPIO2io
P24GPIO24io
P25GPIO25io
P26GPIO26analogIn, io
P27GPIO27analogIn, io
P28GPIO28analogIn, io
P29GPIO29analogIn, io
P3GPIO3io
P4GPIO4io
P5GPIO5io
P6GPIO6io
P7GPIO7io
jacdac.pinGPIO9jacdac.pin, io
led.rgb[0].pinGPIO16led.rgb[0].pin, io
led.rgb[1].pinGPIO14led.rgb[1].pin, io
led.rgb[2].pinGPIO15led.rgb[2].pin, io
log.pinTXGPIO0log.pinTX, io
services.power[0].pinEnGPIO22services.power[0].pinEn, io
services.power[0].pinFaultGPIO12services.power[0].pinFault, io
services.power[0].pinLedPulseGPIO13services.power[0].pinLedPulse, io
services.power[0].pinPulseGPIO8services.power[0].pinPulse, io
services.power[0].pinUsbDetectGPIO11services.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"
}
]
}