Skip to main content

Helper library for the MONSTER M4SK device. Allows usage of screens and other built-in hardware.

Project description

Introduction

Documentation Status Discord Build Status Code Style: Ruff

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

adafruit_circuitpython_monsterm4sk-1.0.9.tar.gz (33.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file adafruit_circuitpython_monsterm4sk-1.0.9.tar.gz.

File metadata

File hashes

Hashes for adafruit_circuitpython_monsterm4sk-1.0.9.tar.gz
Algorithm Hash digest
SHA256 0d21abd46472bce092c6b0c847c4e9db028db80827c8d837c4aca02039a65587
MD5 63be343d10c349436a59f19e0643a7aa
BLAKE2b-256 82540b8b3d836fd611b4a8f7d4868653d8e30c558c26384dc4eff5d183a14eec

See more details on using hashes here.

File details

Details for the file adafruit_circuitpython_monsterm4sk-1.0.9-py3-none-any.whl.

File metadata

File hashes

Hashes for adafruit_circuitpython_monsterm4sk-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 eace625f202e3bd24362620d4643309834c9abdd0fd3e9a639404703d4ddc01e
MD5 fcb502f2e02c363fb9501fdc9c6af9be
BLAKE2b-256 e87b37f5e61313327fb857fb8f4a31ffc5dd8fa2e6f14a8f0b1b91d45077cb83

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page