1 1
No Name

Orange Pi Zero - Official GPIO Full Guide for Newbies

Recommended Posts

Hi Everyone !


I'm trying to find an Official full guide "How to setup and control GPIO on orange Pi zero devices".

I find some parts of informations about it on the net but I don't understand the full steps to do it, it is not enough clear for me.


1) Some people are using unofficial python libraries. But I can see that these libraries seem being a fork from Rpi devices and all GPIO interfaces are not tested.

 

2) I have found the DT Overlay Guide but it explains only how to setup GPIO (not how to use it in a batch, python or c file)

https://docs.armbian.com/User-Guide_Allwinner_overlays/

 

3) Official sunxi documentation

https://linux-sunxi.org/Main_Page

 

https://linux-sunxi.org/GPIO

In this article, it speaks first about the sysfs method but it seems a deprecated method.

 

SUMMARY :

I would like a guide with some examples that explains how to setup and control GPIOs as I/O pin, i2c port, spi port and serial port.

 

1) a simple example to configure a pin as input :

- setup the desired pin as an input

- using IO level change event/interruption with a batch, python and c file.

 

2) other examples with the I2C, SPI and serial port interface.

 

3) an history overview with all differents ways to do it with their life state (deprecated, official/non-official, etc.)

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
1 1