Skip to content
This repository has been archived by the owner on Jul 9, 2020. It is now read-only.

I can't choose the board name #7

Open
birthsu opened this issue Nov 11, 2019 · 2 comments
Open

I can't choose the board name #7

birthsu opened this issue Nov 11, 2019 · 2 comments

Comments

@birthsu
Copy link

birthsu commented Nov 11, 2019

I can't choose the board name
GPIO.setboard(GPIO.PC&PCPLUS)
GPIO.setboard(GPIO.ONE)
GPIO.setboard(GPIO.LITE)
An error message appears:
AttributeError: module 'OPi.GPIO' has no attribute 'ONE'

Thank you !

@SandroMoretti
Copy link

Same here, can't choose ONE board.

I have readed the code, and have no constant to one board.

@imakin
Copy link

imakin commented Feb 8, 2020

Hey guys check here https://github.com/Jeremie-C/OrangePi.GPIO/blob/master/source/common.h
There are constants for orangepi Lite and One
I tested using GPIO.setboard(4) for my OrangePi Lite. HIGH and LOW for Pin number 7 worked.

someone should put the constant for GPIO.LITE and GPIO.ONE, and in my opinion it is better all board constant have BOARD_ prefix

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants