waveshareteam / e-Paper

1.32k stars 592 forks source link

Could not determine Jetson model #313

Open mudalu opened 11 months ago

mudalu commented 11 months ago

硬件环境:树莓派4B 屏幕:7.5inch e-Paper HAT版本 系统环境:Linux raspberrypi 6.1.0-rpi6-rpi-v8 Python环境:Python 3.11.2

运行e-Paper的epd_7in5b_V2_test.py,报错:Could not determine Jetson model

原本报错Can't find Jetson.GPIO model,pip安装Jetson.GPIO后又报错:Could not determine Jetson model

shhds commented 10 months ago

使用最新的程序即可

txoof commented 10 months ago

This appears to be a problem with several modules due to importing the RPi.GPIO module directly from the module. See this example in the 2in13d version

Commenting out the import RPi.GPIO line resolves this.

The following modules appear to be impacted by this:

import logging
from . import epdconfig
from PIL import Image
# the following line is causing this.
import RPi.GPIO as GPIO

# Display resolution
EPD_WIDTH       = 104
EPD_HEIGHT      = 212
txoof commented 10 months ago

PR #324 should resolve this issue for all of the impacted modules.

@shhds: Do you prefer PRs pushed against the master or Development branch?