-
Notifications
You must be signed in to change notification settings - Fork 56
Aliases and defaults
Tom Swirly edited this page Jun 29, 2017
·
5 revisions
All this can amount to a lot of typing, so BiblioPixel gives you some shortcuts.
-
typename
expansion.
If you are only specifying a typename
for a component, then you don't have to specify the entire dictionary, just the name of the class.
This means that a project {"driver": {"typename": "bibliopixel.drivers.API.LPD8806.LPD8806"}}
is identical to the easier-to-read {"driver": "bibliopixel.drivers.API.LPD8806.LPD8806"}
- Aliases.
Aliases are just a shorthand for some common classes. It lets you write the project
{"driver": "bibliopixel.drivers.API.LPD8806.LPD8806"}
as{"driver": "LPD8806"}
.
You can find a current list list of the aliases in this file. Aliases are case insensitive.
- Command-line flags.
There are three command line flags that are used to fill in missing components in your project file - --driver
, --layout
, and --animation
.
- The
--ledtype
command line flag.