Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 1.41 KB

README.md

File metadata and controls

43 lines (31 loc) · 1.41 KB

This folder contains scripts that can be run to create requirement screenshots for all of the learn guide projects

To use the scripts you must set the environment LEARN_GUIDE_REPO to point to the location of learn guide repo. It must end with a trailing slash.

The default value is "../Adafruit_Learning_System_Guides/", one directory above the root of this repo.

With that pointed at a learn guide repo you can run:

python3 create_requirement_images.py

It will create images in the generated_images directory.

Generate Single Learn Guide Image

python3 create_requirement_images.py learn --guide [Learn Guide Name]
# OR
python3 create_requirement_images.py learn -g [Learn Guide Name]

Generate Single Library Bundle Example Image

python3 create_requirement_images.py bundle [path to example].py
# e.g.
python3 create_requirement_images.py bundle Adafruit_CircuitPythonBundle/libraries/helpers/wiz/wiz_buttons_controller.py

Architecture Specific .mpy Files

Files built for different architectures of the same module, like _foo.armv7emsp.mpy and _foo.rv32imc.mpy, are bracketed together with an "OR" badge in the screenshot to show that only one of them is needed.

Help Command

The help command will list all possible commands and arguments.

python3 create_requirement_images.py --help