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.

Setting up the alternative function of NanoPi Neo pins

Featured Replies

Hello, I use the NanoPi Neo (4.19.38-sunxi,  Armbian #5.85 ) to pool an external device over /dev/ttyS1 serial port.  At flashing moment of the external device, I should switch pins of ttyS1 to input mode by using bash commands

#!/bin/bash
firmware=`ls update_*.hex`

echo "198" > /sys/class/gpio/export
echo "199" > /sys/class/gpio/export
echo "in" > /sys/class/gpio/gpio198/direction
echo "in" > /sys/class/gpio/gpio199/direction

# device update
flash -P linuxgpio -b 40000 $firmware

echo "198" > /sys/class/gpio/unexport
echo "199" > /sys/class/gpio/unexport

Is it possible to change up the mode of pins to the alternate function (ALT5) without the rebooting the OS?

While I'd like to give a foxing clever response...

 

I'm not seeing a way to do what you're asking - it's late in the day for me, so I'm sure someone will find a solution perhaps..

 

GPIO's are assigned by uboot/device tree/DT overlay on boot

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.