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.

Orange Pi Zero gpio not working

Featured Replies

kernel:  "Linux orangepizero 4.13.16-sunxi #20 SMP Fri Nov 24 19:50:07 CET 2017 armv7l armv7l armv7l GNU/Linux".

 

I have tried this document,
http://opi-gpio.readthedocs.io/en/latest/api-documentation.html#pull-up-pull-down-resistors


I am using pin 7 (GPIO 6) and INPUT mode, but it not working, 

however I got push signal, but I have not push it, why?

 

The following is my python code.

import OPi.GPIO as GPIO
import time

channel = 7
GPIO.setmode(GPIO.BOARD)
GPIO.setup(7, GPIO.IN)


while True:
   time.sleep(0.5)
   print GPIO.input(channel)

 

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.