Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

readme.md

Examples

Example usages of PcbDraw

All the examples assumes the current directory is the root of the repository.

To render the board invoke:

pcbdraw plot examples/resources/ArduinoLearningKitStarter.kicad_pcb front.svg

To render board, but e.g. change colors of LEDs:

pcbdraw plot --remap examples/resources/remap.json examples/resources/ArduinoLearningKitStarter.kicad_pcb front.svg

To render the back side:

pcbdraw plot --back examples/resources/ArduinoLearningKitStarter.kicad_pcb back.svg

To use different style:

pcbdraw plot --style oshpark-purple examples/resources/ArduinoLearningKitStarter.kicad_pcb front.svg

To render only the board without components:

pcbdraw plot --filter "" examples/resources/ArduinoLearningKitStarter.kicad_pcb front.svg

To render board with only L_R1 and L_Y1:

pcbdraw plot --filter L_R1,L_Y1 examples/resources/ArduinoLearningKitStarter.kicad_pcb front.svg

To render board and highlight L_R1 and L_Y1:

pcbdraw plot --highlight L_R1,L_Y1 examples/resources/ArduinoLearningKitStarter.kicad_pcb front.svg

Populate

There are two example for the populate - HTML one and a Mardown one. They are the same and are located in files source_md.md and source_html.md. To see the result, run

pcbraw populate examples/populate/source_md.md markdown_demo

or

pcbdraw populate examples/populate/source_html.md html_demo

You can find results in the directories markdown_demo and html_demo respectively.