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: Black

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.show(left_group)

right_group = displayio.Group()
mask.right_display.show(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

Built Distribution

File details

Details for the file adafruit-circuitpython-monsterm4sk-0.3.16.tar.gz.

File metadata

File hashes

Hashes for adafruit-circuitpython-monsterm4sk-0.3.16.tar.gz
Algorithm Hash digest
SHA256 75efe2c66c36c81baf8723c3ebb680f23294ea0a24b8b424d3e30b89f05122e4
MD5 21da7912b7dc9975868284043e2b0601
BLAKE2b-256 8d3ce7cefb2f93b8eadd49edcebc9cc390beed4cd67c77d2eeb6ff2450439d17

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for adafruit_circuitpython_monsterm4sk-0.3.16-py3-none-any.whl
Algorithm Hash digest
SHA256 347b30b9715b2ce660680c26925e881fc91e277eb43e48e60ae43f03a0041137
MD5 b1ffef612d9e98c4cb0fb76fa54b3b5d
BLAKE2b-256 0bfbe0798cbbb4525cb3fecf33b090d48cb7a055676cae406fdfaae4975d9f97

See more details on using hashes here.

Provenance

Supported by

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