MakeCode Maker Part designer
A handy helper to integrate a new part in MakeCode
preparing part.svg
-
grab the "breadboard" svg of Fritzing part image
-
resize your image (in Inkscape or other) so that a header is precisely 15px
-
(optional) remove extra components to simplify image
-
Pins: set the id of the svg for headers to the pin names (should be done already)
part.svg
- Save this file as
part.svg in your project and it to the files list in pxt.json
- Keep it small!: remove extra graphical elements and run SVGO to shrink the size.
pxtparts.json
- Save this file to your project and add it to the
files list in pxt.jsoncode
- Update
PART_ID with the part identifier used in the part=PART_ID notataion
- Update the
FUNCTION_NAMES field with a column separate list of fully qualified function names
- More work may be required to fully specify your part, see the docs.