GPIO Library for BPI-R3

Hello,

as I want to read from a DHT21 sensor, I would like to know if there is a working gpio library for the Banana Pi BPI-R3 like wiringpi or gpio zero for the raspberry pi.

Thanks a lot, best regards David

Sorry, BPI-R3 have no gpio library, But you may directly access the gpio from script or code. the path: /sys/class/gpio/

  1. export GPIO, echo xxx > export
  2. setup the direction output or input: echo out > gpioxxx/direction, echo in > gpioxxx/direction
  3. write or read value : echo xxx > gpioxxx/value, cat gpioxxx/value