Helper library for the MONSTER M4SK device. Allows usage of screens and other built-in hardware.
Project description
Introduction
Helper library for the Monster M4sk device. Allows usage of screens and other built-in hardware.
Dependencies
This driver depends on:
Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle.
Installing from PyPI
Usage Example
import board
import displayio
from adafruit_display_shapes.circle import Circle
import adafruit_monsterm4sk
SCREEN_SIZE = 240
i2c_bus = board.I2C()
mask = adafruit_monsterm4sk.MonsterM4sk(i2c=i2c_bus)
left_group = displayio.Group()
mask.left_display.root_group = left_group
right_group = displayio.Group()
mask.right_display.root_group = right_group
right_circle = Circle(SCREEN_SIZE // 2, SCREEN_SIZE // 2, 40, fill=0x0000FF)
right_group.append(right_circle)
left_circle = Circle(SCREEN_SIZE // 2, SCREEN_SIZE // 2, 40, fill=0x00AA66)
left_group.append(left_circle)
while True:
pass
Documentation
API documentation for this library can be found on Read the Docs.
For information on building library documentation, please check out this guide.
Contributing
Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file adafruit-circuitpython-monsterm4sk-1.0.1.tar.gz
.
File metadata
- Download URL: adafruit-circuitpython-monsterm4sk-1.0.1.tar.gz
- Upload date:
- Size: 36.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cdd37ebf7bb90d6b7c844a0e2df28159dd89cc74ffa8a292d886b3dae0f7cbe |
|
MD5 | aedb5c07b6cd8cb4e79c3ed18028c3c8 |
|
BLAKE2b-256 | 5ac4bb71bd1781ff491b35f4e383eb91219ac831bcff27e014379e5b776006d7 |
File details
Details for the file adafruit_circuitpython_monsterm4sk-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: adafruit_circuitpython_monsterm4sk-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ce09b614ba3019c06475145790766ad2f3a0d878b6cbb7e283c8f8f64567f06 |
|
MD5 | 863365a9c78ab0bf913c0613bee2e7ae |
|
BLAKE2b-256 | 80bf076bc65d738b0c26c501c7a1c8bc3d620e33fa81baeeb82722b254a6dc9d |