GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Docs
  • Misc
  • Add a new board

This view

  • Original page
  • New address

GeezerVison is showing maker.makecode.com — Add a new board

Skip to main content
Adafruit
Metro M0 Express Feather M0 Express ItsyBitsy M0 Express Trinket M0 Gemma M0 Metro M4 Express Feather M4 Express ItsyBitsy M4 Express Feather Bluefruit NRF52840 ItsyBitsy nrf52840 Express Circuit Playground Bluefruit
SparkFun
RedBoard Turbo LumiDrive SAMD21 Dev Breakout SAMD21 Mini Breakout
XinaBox
XinaBox CC03 XinaBox CS11
Jacdac
MSR Jacdac IoT Brain 48 (ESP32-S2) MSR Jacdac Brain RP2040 59 MSR Jacdac Brain F4 41 MSR Jacdac NRF52833 High Power 32
Misc
Robotics Masters Robo HAT MM1 M4 Espressif ESP32 DevKit-C RedBear BLE NANO 2 StichKit Teknikio Bluebird JD Brain NRF52840 Add a new board

Add a new board

This is the process needed to add a new board to this editor. Don't hesitate to ping us if you need help getting started.

Step 1: UF2 bootloader

UF2 is an open source file format optimized to transfer files to microcontrollers via USB. All boards in this editor support UF2.

If your board does not support UF2 yet,

  • read UF2 specification: https://github.com/microsoft/uf2
  • if your board is SAMD21/SAMD51 based, start from https://github.com/microsoft/uf2-samdx1
  • if your board is STM32 based, start from https://github.com/mmoskal/uf2-stm32f

Step 2: Add a new project

  • Add a new project under lib named after your board. Start by copying adafruit-trinket-m0 and modify all relevant parts:

  • update pxt.json with the title, name, description

  • update the compilerServiceVariant in pxt.json to match your board chipset

  • update boardhd.svg with a simplified image of your board. See step below.

  • update the bundled-dirs array in pxtarget.json (root of respository) and add your new folder

  • add a code card in /docs/boards.md and a new markdown file under /docs/board/YOUBOARDNAME.md with an example that loads your board

  • run the local server to test your changes by launching

    pxt serve --rebundle

Got any questions? Ping us on the MakeCode Discord. More info at Multi-board.

Step 3: boardhd.svg, config.ts and board.json

The board that gets rendered in the simulator must be stored as a SVG in the project.

  • use https://maker.makecode.com/board-designer to generate the board.json, config.ts file. This is a good start but you'll probably need to update it by hand as well.
  • try to reduce the complexity of the SVG to reduce the file size
  • use a pin id (e.g. D11) or connectedname (from Fritzing) as names for the pin SVG element

Step 4: minifiy board.svg

Run

svgo --config=svgo.yml libs/YOUR_BOARD_NAME/boardhd.svg -o libs/YOUR_BOARD_NAME/board.svg

to generate a minified version of boardhd.svg.

Step 4: Send us a Pull Request!!!

Edit this page on GitHub
Edit template of this page on GitHub

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.