Welcome to rasp-modules’s documentation!

Usage

Note

This is Test Docs, Complete docs will be released soon!

Import LCD

main.py
1from display.lcd import LCD
2
3lcd = LCD(5, 6, 12, 13, 16, 19)
4or
5lcd = LCD(rs=5, en=6, d4=12, d5=13, d6=16, d7=19)
6
7lcd.cursor_start(0, 0)
8lcd.print_line(f"testing")  # "Message string
_images/exam1.png

Import MCP3008

main.py
1from analogue.mcp3008 import MCP3008
2
3adc_mcp3008 = MCP3008(max_speed_hz=1_000_000)
4adc = adc_mcp3008.read_channel(channel=0)   # Channel number on MCP
5
6lcd.cursor_start(0, 0)                      # cursor_start(start, row_number)
7lcd.print_line(adc)                         # "Message string
_images/exam2.png

Indices and tables