Thumby API Documentation
To get started using the entire Thumby API, import the module at the top of your MicroPython program:
- type: string
- values: 1.0 ~ limitless (increased for changes to library)
color is mentioned in the Thumby API docs,
color refers to 0 being a black (unlit) pixel, and the value 1 refers to a white (lit) pixel.
What are Thumby Submodules?
|Thumby Submodule||Documentation Page & Methods|
In Thumby API version 1.7, the Thumby API was divided into submodules for those not using the entire API. Using Thumby submodules increases the speed of program load times. You can always import all thumby constants and methods using
import thumby. To import submodules and to use their methods in your code, you would import the submodule name instead, and when using methods you would type the submodule name instead of "thumby".
Let's look at the differences in two small examples that show how to import and use methods with the entire Thumby API and with a submodule.
Using the full API:
Using a submodule of the API:
These code snippets work the same, but the second runs faster! Check out what methods are available in which submodule in the table below!