It contains modules for raspberry PI.
Project description
rasp-modules
Modules for Raspberry PI LCD, MCP3008.
This package will provide you with basic modules for communications between LCD, MCP3008 with raspberry PI. I will add new modules soon!.
Installtaion:
pip install rasp-modules
Usage:
import the LCD for Display and import MCP3008 for analogue communication.
LCD
from display.lcd import LCD
lcd = LCD(5, 6, 12, 13, 16, 19)
or
lcd = LCD(rs=5, en=6, d4=12, d5=13, d6=16, d7=19)
lcd.cursor_start(0, 0)
lcd.print_line(f"testing") # "Message string
MCP3008
from analogue.mcp3008 import MCP3008
adc_mcp3008 = MCP3008(max_speed_hz=1_000_000)
lcd.cursor_start(0, 0)
lcd.print_line(adc_mcp3008) # "Message string
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
rasp-modules-1.0.2.tar.gz
(5.2 kB
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 rasp-modules-1.0.2.tar.gz.
File metadata
- Download URL: rasp-modules-1.0.2.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eba7614a322fd882401b4275e48f10b073942809030cd5e73d2c9f1b7f817b8d
|
|
| MD5 |
f03c064a8aad64dab8283c498ca79734
|
|
| BLAKE2b-256 |
7b503ac6bae8acc09b05850727103c6271fab9c0b21aab941d75782b27b297fe
|
File details
Details for the file rasp_modules-1.0.2-py3-none-any.whl.
File metadata
- Download URL: rasp_modules-1.0.2-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae5550a0fd5cf6ad0dcf769d900a09d42ed99621d8a2bca79b638ea8f0e0b5a0
|
|
| MD5 |
abfa5b0eee97e01c048f7553fbc9d08b
|
|
| BLAKE2b-256 |
1c170ff27402ab8e77bff7776bddd256852e097d091006f4f758271e8d593ffa
|