1:python3 examples/clock.py --config /home/linaro/lcd-prop/luma.examples/conf/test7735.conf 代码
test7735.conf 脚位值
脚位值
执行结果
root@alinux:/home/linaro/lcd-prop/luma.examples# python3 examples/clock.py --config /home/linaro/lcd-prop/luma.examples/conf/test7735.conf
Traceback (most recent call last):
File "examples/clock.py", line 69, in <module>
device = get_device()
File "/home/linaro/lcd-prop/luma.examples/examples/demo_opts.py", line 61, in get_device
device = cmdline.create_device(args)
File "/usr/local/lib/python3.7/dist-packages/luma/core/cmdline.py", line 244, in create_device
interface = getattr(make_interface(args), args.interface)()
File "/usr/local/lib/python3.7/dist-packages/luma/core/cmdline.py", line 159, in spi
gpio=self.gpio or GPIO)
File "/usr/local/lib/python3.7/dist-packages/luma/core/interface/serial.py", line 305, in __init__
bitbang.__init__(self, gpio, transfer_size, reset_hold_time, reset_release_time, DC=gpio_DC, RST=gpio_RST)
File "/usr/local/lib/python3.7/dist-packages/luma/core/interface/serial.py", line 193, in __init__
self._DC = self._configure(kwargs.get("DC"))
File "/usr/local/lib/python3.7/dist-packages/luma/core/interface/serial.py", line 206, in _configure
self._gpio.setup(pin, self._gpio.OUT)
ValueError: The channel sent is invalid on a ASUS
2:如果把值换成(1,4,5)
145
root@alinux:/home/linaro/lcd-prop/luma.examples# python3 examples/clock.py --config /home/linaro/lcd-prop/luma.examples/conf/test7735.conf
This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.asus_pullUpDnControl: pin=126, pud=0, bank=3, bank_pin=30
This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.wrong gpio
This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.asus_pullUpDnControl: pin=72, pud=0, bank=2, bank_pin=8
Version: luma.lcd 2.10.0 (luma.core 2.4.0)
Display: st7735
Interface: spi
Dimensions: 160 x 128
------------------------------------------------------------
3:仿真效果
|