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 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 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.1.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for rasp_modules-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d72fec50068ed168b0a8106da5d986b923743871af886789b301de4e1899b5e |
|
MD5 | d52593b5be272ef3648fd32b8c485448 |
|
BLAKE2b-256 | 69ffc97b1eb51e9a73392eb1bd3981480d7e61d490c4d31041318e635ffebe0c |