Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not determine Jetson model #313

Open
mudalu opened this issue Nov 26, 2023 · 3 comments
Open

Could not determine Jetson model #313

mudalu opened this issue Nov 26, 2023 · 3 comments

Comments

@mudalu
Copy link

mudalu commented Nov 26, 2023

硬件环境:树莓派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
Copy link
Contributor

shhds commented Dec 21, 2023

使用最新的程序即可

@txoof
Copy link
Contributor

txoof commented Jan 7, 2024

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:

  • epd2in13d
  • epd2in9d
  • epd4in01f
  • epd4in2_V2
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
Copy link
Contributor

txoof commented Jan 7, 2024

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants