tinymon
Project description
Tinymon
Usage
TinyMon
class
- TinyMon(baseimagepath=None, fbdev=None, previewdev=None, brightness=15, sleep_time=0.01, timeout=7)
- parameters
- baseimagepath
- background image
- default None
- fbdev
- frame buffer device
- should use Ssd1362
- fbdev=Ssd1362()
- previewdev
- preview video device
- experimental
- brightness
- 0 ~ 15
- sleep_time
- sleep for cpu idle time
- recommend 0.01
- timeout
- timeout for preview udp
- default 7 seconds
- baseimagepath
- parameters
methods
-
addctrl(id, ctrl)
- parameters
- id : str
- ctrl name for internal dictionary
- ctrl : ImageCtrl, TextCtrl
- ImageCtrl, TextCtrl instance
- id : str
- parameters
-
delImageCtrl(id)
- parameters
- id : str
- ctrl name for internal dictionary
- id : str
- parameters
-
delTextCtrl(id)
- parameters
- id : str
- ctrl name for internal dictionary
- id : str
- parameters
ImageCtrl
class
- ImageCtrl(pos=(0,0), size=(MAX_WIDTH,MAX_HEIGHT), path=None)
- parameters
- pos : tuple (x,y)
- image position top-left
- size : tuple (width, height)
- image size : max(256, 64)
- path
- image path
- pos : tuple (x,y)
- parameters
methods
-
open(path, pos=None, size=None)
- description
- change an image in ctrl instance
- parameters
- pos : tuple (x,y)
- image position top-left
- size : tuple (width, height)
- image size : max(256, 64)
- pos : tuple (x,y)
- description
-
changePos(pos)
- parameters
- pos : tuple (x,y)
- image position top-left
- pos : tuple (x,y)
- parameters
-
paste(im, box=(0,0))
- description
- pastes another image into this image
- parameters
- im
- pillow image instance
- box : (x,y), (x, y, width, height)
- (x, y) : top left position
- (x, y, width, height) : top left and size
- im
- description
-
clear(image)
- description
- paste image whole area
- for background image
- parameters
- image
- pillow image
- image
- description
TextCtrl
class
- TextCtrl(pos=(10,10) , fontsize=14, font='font/NanumBarunGothicLight.ttf', text=None):
- parameters
- pos : tuple (x,y)
- text position top-left
- fontsize
- font
- font path
- text : str
- input text
- pos : tuple (x,y)
- parameters
methods
-
setText(text)
- parameters
- text : str
- input text
- text : str
- parameters
-
draw(im=None, fill=255)
- description
- for internal use
- parameters
- im
- pillow image
- fill
- gray level : 0~255
- im
- returns
- pillow image
- text added image
- description
requirements
g4l (gpio python package)
ssd1362-py
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
tinymon-0.1.11.tar.gz
(2.4 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tinymon-0.1.11.tar.gz.
File metadata
- Download URL: tinymon-0.1.11.tar.gz
- Upload date:
- Size: 2.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3d6c23979e80a4a6654c2435b1b248191fc31828c7b9c9c81939d577b1e4a29
|
|
| MD5 |
cedb61df47556f677205d52db596340b
|
|
| BLAKE2b-256 |
9d43923ad2f02d4e81c9f7f9effb32ece6ee9c9670e93bd9d898f3b60c6f0381
|
File details
Details for the file tinymon-0.1.11-py3-none-any.whl.
File metadata
- Download URL: tinymon-0.1.11-py3-none-any.whl
- Upload date:
- Size: 2.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b87eed98f8a27fd186bfaa9f4797e8aa1eeca78ab76dd0af5aa1359df1b1178
|
|
| MD5 |
c1746eb827af0453ab2ac03fdf5d5d5e
|
|
| BLAKE2b-256 |
368bddad779365c52d1b17ba501da8753a7d971302849619f8e91eed0baa97a2
|