Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Waveshare e-Paper on Orange Pi Zero LTS

Featured Replies

I am trying to use a Waveshare e-Paper (2.9") with an Orange Pi Zero LTS. To enable the SPI interface, I have added this to /boot/armbianEnv.txt:

overlays=spi-add-cs1 spi-spidev
param_spidev_spi_bus=1
param_spidev_max_freq=10000000

and installed WiringPI from Github. The e-Paper module is connected to the following GPIO pins:

VCC: 3.3V
GND: GND
DIN: 19(phys)/11(wPi)
CLK: 23(phys)/14(wPi)
CS: 24(phys)/15(wPi)
DC: 22(phys)/13(wPi)
RST: 3(phys)/0(wPi)
BUSY: 5(phys)/1(wPi)

I have checked the connections by using the gpio command line tool to set all 6 ports above to low and to high, and verifying the output with a multimeter.

 

Then I downloaded the e-Paper software from Github, and made it compatible with the Orange Pi via the following changes to lib/Config/DEV_Config.c:

1. In DEV_Equipment_Testing(void), comment out the code that checks if the file /etc/issue contains the string "Raspian"
2. Set EPD_RST_PIN=0, EPD_DC_PIN=13, EPD_CS_PIN=15, EPD_BUSY_PIN=1.
3. Uncomment "if(wiringPiSetup() < 0)", add a curly open brace, and comment out the line after.
4. Change "wiringPiSPISetup(0,10000000);" into "wiringPiSPISetup(1,10000000);" to use spidev1.0

When I run this e-Paper example, nothing happens on the e-Paper display, although I can detect voltage changes on the GPIO ports with a multimeter. The same software works on a Raspberry Pi without problems. Any hints are appreciated!

Edited by Cumulus

Hi @Cumulus,

 

It has been a while since you wrote this message, so I guess you solved it by now.

 

I have an Orange Pi Lite and I recently bought a Waveshare e-Paper 2.13" V2.

 

After a few hours and some reading on the internet, I found the right modifications to make it work with that setup.

 

Feel free to have a look at https://github.com/Masatrad-com/e-Paper/tree/master/OrangePi

 

Regards

  • Author
On 1/4/2021 at 10:02 AM, JDMasa said:

Hi @Cumulus,

 

It has been a while since you wrote this message, so I guess you solved it by now.

 

I have an Orange Pi Lite and I recently bought a Waveshare e-Paper 2.13" V2.

 

After a few hours and some reading on the internet, I found the right modifications to make it work with that setup.

 

Feel free to have a look at https://github.com/Masatrad-com/e-Paper/tree/master/OrangePi

 

Regards

 

Thank you! I gave up eventually, but will try again with your modifications.

  • Author

Still no luck. Your git repository is for the Orange Pi, not for the Orange Pi Zero, so I cannot fully mimic your setup. The spidev0 interface of the Pi Zero is used for the SPI flash module, so I have to use spidev1, and the WiringOP library you used is not compatible with the Zero. I took the code from your repo and made a few changes (to use spidev1.0, to use different pins for RST, DC and BSY, and to switch to wPi pin numbering by using wiringPiSetup instead of wiringPiSetupGpio). Still no luck.

 

When going over everything once more, I noticed that the "spi-add-cs1" overlay is superfluous, but removing it did not resolve anything.

Hi, people !

 

E-paper displays (I have 2.9 from Waveshare) are working well with Orange Pi Zero LTS under Armbian 21.08.6 Focal without WiringPi.

Uncomment option USELIB_RPI = USE_DEV_LIB and comment others in C-example from Waveshare 

 

Regards

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.