A small collection of functions for interacting with a fluepdot module.
Project description
python-fluepdot
This is a small collection of functions for interacting with a fluepdot module.
the first call after importing should always be to set the URL at which the module can be reached.
import fluepdot as fd
fd.set_url("module.local")
Functions
function | args | default values | return type | description |
---|---|---|---|---|
post_time | None | indefinitly sets the module to display the current time. | ||
get_size | (int, int) | returns the size of the connected display | ||
get_frame | str | returns the current frame stored by the module | ||
get_pixel | x: int, y: int | x=0, y=0 | returns the state of a single pixel | |
get_fonts | None | prints a list of fonts installed on the module | ||
get_mode | fluepdot.Mode | returns the mode the module is in | ||
post_text | text: str, x: int, y: int, font: str | x=0, y=0, font="DejaVuSans12" | requests.Response | posts a text to the module and returns the requests response |
post_frame | frame: List[List[bool]] | requests.Response | posts a frame to the module and returns the requests response | |
set_pixel | x: int, y: int | x=0, y=0 | requests.Response | sets a pixel on the display to active and returns the requests response |
unset_pixel | x: int, y: int | x=0, y=0 | sets a pixel on thes display to inactive and returns the requests response | |
set_mode | mode: fluepdot.Mode | mode=Mode.FULL | requests.Response | sets the module to FULL or DIFFERENTIAL update mode and returns the requests response |
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
python-fluepdot-0.0.1.tar.gz
(3.7 kB
view details)
Built Distribution
File details
Details for the file python-fluepdot-0.0.1.tar.gz
.
File metadata
- Download URL: python-fluepdot-0.0.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04c21118f2629893d3881e8ca755a44bd160a2557979b306be4995856a97a337 |
|
MD5 | c4a15bfa625c40619892a7e270b7154d |
|
BLAKE2b-256 | 04c088466ffdacc096d930cb411711e009bb0c13cacbfade45df28d5e750cfd9 |
File details
Details for the file python_fluepdot-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: python_fluepdot-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc485600d57d350f16ca1334229a42d6586198f539b36f352b7c2dced4956c63 |
|
MD5 | 98a0b250060587c178e84bdf088a6f32 |
|
BLAKE2b-256 | fe0667f251b4392a69f7317932ded681a3322b3fa7160f19439620287ef6dfad |