Skip to main content

MSR Brain RP2040 59 v0.1

Prototype board

MSR Brain RP2040 59 v0.1 picture

Features

  • Jacdac on pin 9 using Jacdac connector
  • RGB LED on pins 11, 13, 15 (use setStatusLight to control)
  • Serial logging on pin 2 at 115200 8N1

  • Service: power (auto-start)

caution

I2C pins are not configured.

Stores

Pins

pin namehardware idfeatures
P26GPIO26analogIn, io
P27GPIO27analogIn, io
P3GPIO3io
P4GPIO4io
P5GPIO5io
P6GPIO6io
jacdac.pinGPIO9jacdac.pin, io
led.rgb[0].pinGPIO11led.rgb[0].pin, io
led.rgb[1].pinGPIO13led.rgb[1].pin, io
led.rgb[2].pinGPIO15led.rgb[2].pin, io
log.pinTXGPIO2log.pinTX, io
services.power[0].pinEnGPIO19services.power[0].pinEn, io
services.power[0].pinFaultGPIO25services.power[0].pinFault, 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 Brain RP2040 59 v0.1".

import { pins, board } from "@dsboard/msr59"

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 msr59

Configuration

msr59.json
{
"$schema": "https://raw.githubusercontent.com/microsoft/devicescript-pico/main/boards/rp2040deviceconfig.schema.json",
"id": "msr59",
"devName": "MSR Brain RP2040 59 v0.1",
"productId": "0x35a678a3",
"$description": "Prototype board",
"archId": "rp2040",
"jacdac": {
"$connector": "Jacdac",
"pin": 9
},
"led": {
"rgb": [
{
"mult": 250,
"pin": 11
},
{
"mult": 60,
"pin": 13
},
{
"mult": 150,
"pin": 15
}
]
},
"log": {
"baud": 115200,
"pinTX": 2
},
"pins": {
"P26": 26,
"P27": 27,
"P3": 3,
"P4": 4,
"P5": 5,
"P6": 6
},
"services": [
{
"faultIgnoreMs": 100,
"mode": 2,
"name": "power",
"pinEn": 19,
"pinFault": 25,
"service": "power"
}
]
}