When I had Rasbian, got a lcd-display wired to Zero working following https://www.circuitbasics.com/raspberry ... in-python/
Testing with this script, also python3 shell stopped at the last line.
Code: Select all
#!/usr/bin/env python3
from RPLCD.gpio import CharLCD
from RPi import GPIO
GPIO.setwarnings(False)
lcd = CharLCD(pin_rs = 37, pin_e = 35, pins_data = [33, 31, 29, 23], numbering_mode = GPIO.BOARD)
If I run the scrpt as user, I get this
Code: Select all
RuntimeError: No access to /dev/mem. Try running as root!
If with sudo, it ends to this
Code: Select all
Memory overflow
Code: Select all
$ ls -la /dev/mem
crw-r----- 1 root kmem 1, 1 helmi 14 2019 /dev/mem