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.

use push button on orange pi, via GPIO

Featured Replies

Hy guys

 

i want to use a push button on my orange pi.

 

if i press the button, the orange pi should run a script.

i only use esp8266 with arduino tu create some interactive tools.

does anybody know, how it works on the orange pi and which cheapy button you would prefer?

i only want to run sh script, when the button will be press.

 

thank you a lot!

Solved by usual user

  • Solution
1 hour ago, jumbo125 said:

i want to use a push button on my orange pi.

 

How to wait for a button press is outlined here.

If you want to be able to write code that is device-agnostic, you'll need to set up generic gpio-line-names.
See here for reference.

With that in place e.g.:

gpiomon --num-events=1 con1-08 && my-script

will be able to run on any device that has the gpio-line-names set up in the same way.
I.e. will wait at pin 8 of the first extention connector for an event.

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...

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.