adafruit_qualia
¶
Portal Style Library for the Adafruit Qualia ESP32-S3
Author(s): Melissa LeBlanc-Williams
Implementation Notes¶
Hardware:
Software and Dependencies:
Adafruit CircuitPython firmware for the supported boards: https://circuitpython.org/downloads
Adafruit’s PortalBase library: https://github.com/adafruit/Adafruit_CircuitPython_PortalBase
- class adafruit_qualia.Qualia(display_type: str, *, url: str | None = None, headers: Dict[str, str] = None, json_path: List[str] | List[List[str]] | None = None, regexp_path: Sequence[str] | None = None, default_bg: int = 0, json_transform: Callable | List[Callable] | None = None, rotation: int = 0, scale: int = 1, debug: bool = False, use_network: bool = True)¶
Class representing the Adafruit Qualia ESP32-S3.
- Parameters:
display_type – The lowercase model of the display that you are using.
url – The URL of your data source. Defaults to
None
.headers – The headers for authentication, typically used by Azure API’s.
json_path – The list of json traversal to get data out of. Can be list of lists for multiple data points. Defaults to
None
to not use json.regexp_path – The list of regexp strings to get data out (use a single regexp group). Can be list of regexps for multiple data points. Defaults to
None
to not use regexp.default_bg – The path to your default background image file or a hex color. Defaults to 0x000000.
json_transform – A function or a list of functions to call with the parsed JSON. Changes and additions are permitted for the
dict
object.rotation – Default rotation is landscape (270) but can be 0, 90, or 180 for portrait/rotated
scale – Default scale is 1, but can be an integer of 1 or greater
debug – Turn on debug print outs. Defaults to False.
use_network – Enable network initialization. Defaults to True. Setting to False will allow you to use the library without a secrets.py file with wifi configuration in it.
adafruit_qualia.graphics
¶
Portal Style Library for the Adafruit Qualia ESP32-S3
Author(s): Melissa LeBlanc-Williams
Implementation Notes¶
Hardware:
Software and Dependencies:
Adafruit CircuitPython firmware for the supported boards: https://github.com/adafruit/circuitpython/releases
Adafruit’s PortalBase library: https://github.com/adafruit/Adafruit_CircuitPython_PortalBase
- class adafruit_qualia.graphics.Displays¶
Class that automatically loads displays from the displays folder.
- static load_displays()¶
Load a list of available displays and set them as attributes
- static valid_displays()¶
Return the available valid displays
- class adafruit_qualia.graphics.Graphics(display_type: str, *, auto_refresh: bool = True, default_bg: int = 0, rotation: int = 0, scale: int = 1, debug: bool = False)¶
Graphics Helper Class for the Adafruit Qualia ESP32-S3 Library
- Parameters:
display_type – The lowercase model of the display that you are using.
auto_refresh – Set to False to disable auto refresh. Defaults to True.
default_bg – The path to your default background image file or a hex color. Defaults to 0x000000.
rotation – Default rotation is landscape (270) but can be 0, 90, 180 for portrait/rotated
debug – Turn on debug print outs. Defaults to False.
- property dotclockdisplay¶
Return the dotclock display object
- property i2c_bus¶
Return the I2C bus
- init_display(display_type: str, *, auto_refresh: bool = True)¶
Load the Display Class, then initialize the display and touch driver
- property touch¶
Return the touch driver
adafruit_qualia.network
¶
Portal Style Library for the Adafruit Qualia ESP32-S3
Author(s): Melissa LeBlanc-Williams
Implementation Notes¶
Hardware:
Software and Dependencies:
Adafruit CircuitPython firmware for the supported boards: https://github.com/adafruit/circuitpython/releases
Adafruit’s PortalBase library: https://github.com/adafruit/Adafruit_CircuitPython_PortalBase
- class adafruit_qualia.network.Network(*, extract_values: bool = True, debug: bool = False)¶
Network Helper Class for the Adafruit Qualia ESP32-S3 Library
- Parameters:
extract_values (bool) – If true, single-length fetched values are automatically extracted from lists and tuples. Defaults to
True
.debug – Turn on debug print outs. Defaults to False.
- init_io_mqtt() IO_MQTT ¶
Initialize MQTT for Adafruit IO
- init_mqtt(broker: str, port: int = 8883, username: str = None, password: str = None, use_io: bool = False) MQTT | IO_MQTT ¶
Initialize MQTT
adafruit_qualia.peripherals
¶
Portal Style Library for the Adafruit Qualia ESP32-S3
Author(s): Melissa LeBlanc-Williams
Implementation Notes¶
Hardware:
Software and Dependencies:
Adafruit CircuitPython firmware for the supported boards: https://github.com/adafruit/circuitpython/releases
Adafruit’s PortalBase library: https://github.com/adafruit/Adafruit_CircuitPython_PortalBase
Adafruit’s PCA9554 library: https://github.com/adafruit/Adafruit_CircuitPython_PCA9554
Adafruit’s CST8XX library: https://github.com/adafruit/Adafruit_CircuitPython_CST8XX
Adafruit’s FocalTouch library: https://github.com/adafruit/Adafruit_CircuitPython_FocalTouch
- class adafruit_qualia.peripherals.Peripherals(*, i2c_bus: I2C = None, address: int = 0x3F)¶
Peripherals Helper Class for the Adafruit Qualia ESP32-S3 Library
adafruit_qualia.displays
¶
DotClock Display Base Class
Author(s): Melissa LeBlanc-Williams
- class adafruit_qualia.displays.DotClockDisplay¶
DotClock Display Base Class for the Adafruit Qualia ESP32-S3 Library
- property height¶
The height of the display in pixels
- property i2c_bus¶
Return the I2C bus
- init_touch()¶
Attempt to initialize the touch driver
- property round¶
Return whether the display is circular
- property width¶
The width of the display in pixels
adafruit_qualia.displays.round21
¶
2.1” 480x480 Round DotClock Display Class
Author(s): Melissa LeBlanc-Williams
Implementation Notes¶
Hardware:
- class adafruit_qualia.displays.round21.Round21¶
TL021WVC02 display driver
adafruit_qualia.displays.round40
¶
4” 720x720 Round DotClock Display Class
Author(s): Melissa LeBlanc-Williams
Implementation Notes¶
Hardware:
- class adafruit_qualia.displays.round40.Round40¶
HD40015C40/NV3052C display driver
adafruit_qualia.displays.square34
¶
3.4” 480x480 Square DotClock Display Class
Author(s): Melissa LeBlanc-Williams
Implementation Notes¶
Hardware:
- class adafruit_qualia.displays.square34.Square34¶
TL034WVS05 display driver
adafruit_qualia.displays.square40
¶
4” 720x720 Square DotClock Display Class
Author(s): Melissa LeBlanc-Williams
Implementation Notes¶
Hardware:
- class adafruit_qualia.displays.square40.Square40¶
TL040HDS20 display driver
adafruit_qualia.displays.bar320x820
¶
3.2” 320x820 Bar DotClock Display Class
Author(s): Melissa LeBlanc-Williams
Implementation Notes¶
Hardware:
- class adafruit_qualia.displays.bar320x820.Bar320x820¶
TL032FWV01 display driver