View: 823|Reply: 15

[OrangePiZero2W] 2.13inch Touch e-Paper

[Copy link]

2

threads

4

posts

50

credits

Registered member

Rank: 2

credits
50
Published in 2023-11-29 06:45:02 | Show all floors |Read mode
This post was finally edited by aksyde at 2023-11-29 06:53

Hi!

Has anyone succeed to play with this ePaper screen

https://www.waveshare.com/wiki/2.13inch_Touch_e-Paper_HAT_Manual#python

on the orange pi zero 2W ?

I have download the required files, and install all required pip package.
I have also set the proper permission to gpio/spi/i2c, following this

https://forum.up-community.org/discussion/2141/solved-tutorial-gpio-i2c-spi-access-without-root-permissions

but i still get

  1. [Errno22] Invalid argument
Copy code
which, as far as I understand, seems to be related to this kind of error
  1. orangepi@orangepizero2w ~ echo 3 > /sys/class/gpio/export
  2. write: Invalid argument</div>
Copy code
as a MWE i tried


  1. <div>import OPi.GPIO as GPIO
  2. import time
  3. #We need this
  4. from os import geteuid

  5. # Pin Definitions:
  6. ledPin = 4

  7. # Pin Setup:
  8. GPIO.setmode(GPIO.BCM)
  9. GPIO.setup(ledPin, GPIO.OUT) # LED pin set as output
  10. #If we're not root, sleep 100ms in order for udev to set
  11. #the permissions on the exported GPIO right
  12. if(geteuid() > 0):
  13.         time.sleep(0.1)

  14. print("Here we go! Press CTRL+C to exit")
  15. try:
  16.         while 1:
  17.                 GPIO.output(ledPin, GPIO.HIGH)
  18.                 time.sleep(0.5)
  19.                 GPIO.output(ledPin, GPIO.LOW)
  20.                 time.sleep(0.5)
  21. except KeyboardInterrupt: # If CTRL+C is pressed, exit cleanly:
  22.         GPIO.cleanup() # cleanup all GPIO</div>
Copy code


but i get
  1. OSError: [Errno 22] Invalid argument

  2. During handling of the above exception, another exception occurred:

  3. Traceback (most recent call last):
  4.   File "/tmp/test.py", line 11, in <module>
  5.     GPIO.setup(ledPin, GPIO.OUT) # LED pin set as output
  6.     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  7.   File "/home/orangepi/code/venv/lib/python3.11/site-packages/OPi/GPIO.py", line 480, in setup
  8.     raise e                           
  9.   File "/home/orangepi/code/venv/lib/python3.11/site-packages/OPi/GPIO.py", line 472, in setup
  10.     sysfs.export(pin)
  11.   File "/home/orangepi/code/venv/lib/python3.11/site-packages/OPi/sysfs.py", line 37, in export
  12.     with open(path, "w") as fp:
  13. OSError: [Errno 22] Invalid argument
Copy code
many thanks!


112

threads

258

posts

930

credits

Senior member

Rank: 4

credits
930
Published in 2024-2-22 16:50:33 | Show all floors
Treten Sie mit   VapeCenterPro   in die Zukunft des Dampfens ein! Dieses hochmoderne Online-Ziel bietet eine kuratierte Auswahl an erstklassigen E-Zigaretten-Produkten und Zubehör. Entdecken Sie ein umfangreiches Sortiment an Premium-E-Liquids, hochmodernen Verdampfergeräten und stilvollem Zubehör, das sowohl für Anfänger als auch für erfahrene Enthusiasten maßgeschneidert ist. VapeCenterPro legt Wert auf Qualität und stellt sicher, dass jedes Produkt den höchsten https://www.vapecenterpro.com/     Standards entspricht. Mit einer benutzerfreundlichen Oberfläche und Expertenempfehlungen war die Navigation in der Welt des Dampfens noch nie so reibungslos. Steigern Sie Ihr Dampferlebnis, entdecken Sie die neuesten Trends und genießen Sie außergewöhnlichen Kundenservice – alles auf Knopfdruck. Willkommen an der Spitze der E-Zigaretten-Innovation mit VapeCenterPro!
Published in 2024-2-26 15:21:27 | Show all floors
the price of insurance quotes would vary from company to company and i always check for the lowest priced insurance quotes::        earn money for watching videos
Published in 2024-3-6 00:07:08 | Show all floors
GPS is really a heaven sent gadget, you can always pinpoint your exact location wherever you are~        sv388
Published in 2024-3-9 19:56:27 | Show all floors
The way you write, you are really a professional blogger..*:;;        오피야
Published in 2024-3-10 00:38:33 | Show all floors
Couldn’t be written any better. Reading this post reminds me of my old room mate! He always kept talking about this. I will forward this article to him. Pretty sure he will have a good read. Thanks for sharing!        Christy Rachel
Published in 2024-3-12 19:36:43 | Show all floors
Pour acheter des kamas dofus visitez le site Acheter kamas dofus        play boy jobs
Published in 2024-3-17 00:14:08 | Show all floors
Hello this is amazing site! really cool and it will be a new inspirations for me        topcer88 slot
Published in 2024-3-22 00:35:23 | Show all floors
I’d ought to talk to you here. Which is not something It’s my job to do! I enjoy reading an article which will get people to believe. Also, appreciate your permitting me to comment!        오피쓰
Published in 2024-3-26 04:04:34 | Show all floors
This is great content.  You’ve loaded this with useful, informative content that any reader can understand.  I enjoy reading articles that are so very well-written.        topcer88
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list