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.

A20 use of gpio

Featured Replies

I export a range of GPIOs and then  when i see the list of available GPIOs i see this

root@micro:~# ls /sys/class/gpio/                                               
export  gpio16  gpio23  gpio30  gpio38  gpio45  gpio52  gpio6                   
gpio1   gpio17  gpio24  gpio31  gpio39  gpio46  gpio53  gpio60                  
gpio10  gpio18  gpio25  gpio32  gpio4   gpio47  gpio54  gpio61                  
gpio11  gpio19  gpio26  gpio33  gpio40  gpio48  gpio55  gpio7                   
gpio12  gpio2   gpio27  gpio34  gpio41  gpio49  gpio56  gpio8                   
gpio13  gpio20  gpio28  gpio35  gpio42  gpio5   gpio57  gpio9                   
gpio14  gpio21  gpio29  gpio36  gpio43  gpio50  gpio58  gpiochip1               
gpio15  gpio22  gpio3   gpio37  gpio44  gpio51  gpio59  unexport                
root@micro:~# 

 

 

Instead i should see something like this : 

 root@A20:~# ls /sys/class/gpio/
   export       gpio21_pc3/  gpio33_pb8/  gpio45_ph27/ gpio57_ph17/ gpio69_pg5/
   gpio10_pe9/  gpio22_pc7/  gpio34_pb10/ gpio46_ph0/  gpio58_ph18/ gpio6_pe5/
   gpio11_pe10/ gpio23_pc16/ gpio35_pb11/ gpio47_ph2/  gpio59_ph19/ gpio70_pg6/
   gpio12_pe11/ gpio24_pc17/ gpio36_pb12/ gpio48_ph7/  gpio5_pe4/   gpio71_pg7/
   gpio13_pi14/ gpio25_pc18/ gpio37_pb13/ gpio49_ph9/  gpio60_ph20/ gpio72_pg8/
   gpio14_pi15/ gpio26_pc23/ gpio38_pb14/ gpio4_pe3/   gpio61_ph21/ gpio73_pg9/
   gpio15_pi0/  gpio27_pc24/ gpio39_pb15/ gpio50_ph10/ gpio62_ph22/ gpio74_pg10/
   gpio16_pi1/  gpio28_pb3/  gpio3_pe2/   gpio51_ph11/ gpio63_ph23/ gpio75_pg11/
   gpio17_pi2/  gpio29_pb4/  gpio40_pb16/ gpio52_ph12/ gpio64_pg0/  gpio7_pe6/
   gpio18_pi3/  gpio2_pe1/   gpio41_pb17/ gpio53_ph13/ gpio65_pg1/  gpio8_pe7/
   gpio19_pi10/ gpio30_pb5/  gpio42_ph24/ gpio54_ph14/ gpio66_pg2/  gpio9_pe8/
   gpio1_pe0/   gpio31_pb6/  gpio43_ph25/ gpio55_ph15/ gpio67_pg3/  gpiochip1/
   gpio20_pi11/ gpio32_pb7/  gpio44_ph26/ gpio56_ph16/ gpio68_pg4/  unexport

 

 

Solved by zador.blood.stained

3 minutes ago, Ilias Papastratis said:

Instead i should see something like this

This was changed for the compatibility with different libraries that use GPIO sysfs interface, and can be changed back to display native port bank and pin number by compiling a modified kernel.

  • Author

The pins tha are available  are the same pins with the pin name removed for example gpio10_pe9 is the same as gpio10?

Or in  gpio10 the 10 is computed from the type :    (  position of letter in alphabet-1)*32 + pin number           ??

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.