Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

Rockpi4/hardware/gpio/es es

< Rockpi4‎ | hardware‎ | gpio
Revision as of 01:21, 15 December 2018 by HANLLEL (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
    ROCK Pi 4 >  Hardware >  GPIO


El GPIO del procesador Rockchip RK3399 GPIO tiene 5 bancos, GPIO0 al GPIO4, cada banco tiene 32pines, se llaman así:

   GPIO0_A0 ~ A7 
   GPIO0_B0 ~ B7
   GPIO0_C0 ~ C7
   GPIO0_D0 ~ D7
   
   GPIO1_A0 ~ A7
   ....
   GPIO1_D0 ~ D7

Para el núcleo 4.4 de Rockchip, el número de GPIO puede ser calculado, si GPIO4_D5(PIN22 sobre PIN40 GPIO) entonces:

   GPIO4_D5 = 32*4 + 8*3 + 5 = 157

Para activar la salida GPIO4_D5 debes usar

   cd /sys/class/gpio
   echo 157 > export
   cd gpio157
   echo out > direction
   echo 1 > value     # salida valor alto
   echo 0 > value     # salida valor bajo