Skip to main content

MSR JM Brain S2-mini 207 v4.2

Features

  • Jacdac on pin 17 using Jacdac connector
  • RGB LED on pins 8, 7, 6 (use setStatusLight to control)
  • Serial logging on pin 43 at 115200 8N1

  • Service: power (auto-start)

caution

I2C pins are not configured.

Stores

Pins

pin namehardware idfeatures
P33GPIO33io
P34GPIO34io
jacdac.pinGPIO17jacdac.pin, analogOut, io
led.rgb[0].pinGPIO8led.rgb[0].pin, analogIn, io
led.rgb[1].pinGPIO7led.rgb[1].pin, analogIn, io
led.rgb[2].pinGPIO6led.rgb[2].pin, analogIn, io
log.pinTXGPIO43log.pinTX, io
sd.pinCSGPIO38sd.pinCS, io
sd.pinMISOGPIO37sd.pinMISO, io
sd.pinMOSIGPIO35sd.pinMOSI, io
sd.pinSCKGPIO36sd.pinSCK, io
services.power[0].pinEnGPIO2services.power[0].pinEn, analogIn, io
services.power[0].pinFaultGPIO13services.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 JM Brain S2-mini 207 v4.2".

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

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 msr207_v42

Configuration

msr207_v42.json
{
"$schema": "https://raw.githubusercontent.com/microsoft/devicescript-esp32/main/boards/esp32deviceconfig.schema.json",
"id": "msr207_v42",
"devName": "MSR JM Brain S2-mini 207 v4.2",
"productId": "0x322e0e64",
"archId": "esp32s2",
"jacdac": {
"$connector": "Jacdac",
"pin": 17
},
"led": {
"rgb": [
{
"mult": 250,
"pin": 8
},
{
"mult": 60,
"pin": 7
},
{
"mult": 150,
"pin": 6
}
]
},
"log": {
"pinTX": 43
},
"pins": {
"P33": 33,
"P34": 34
},
"sd": {
"pinCS": 38,
"pinMISO": 37,
"pinMOSI": 35,
"pinSCK": 36
},
"services": [
{
"faultIgnoreMs": 100,
"mode": 0,
"name": "power",
"pinEn": 2,
"pinFault": 13,
"service": "power"
}
]
}