Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OPi.GPIO has no attribute setboard #6

Open
IZTOK71 opened this issue Nov 19, 2022 · 1 comment
Open

OPi.GPIO has no attribute setboard #6

IZTOK71 opened this issue Nov 19, 2022 · 1 comment

Comments

@IZTOK71
Copy link

IZTOK71 commented Nov 19, 2022

Hello,

I have stumbled upon an error.

When trying to run the blink_led.py example there is a message:

The start of the code:

import OPi.GPIO as GPIO
from time import sleep

GPIO.setboard(GPIO.H616) # in my case its H616
GPIO.setmode(GPIO.BOARD)
GPIO.setup(11, GPIO.OUT)

The error occurs at line 8:
'module' object has no attribute 'setboard'.

as OPi.GPIO is our module there seems to be a problem there. Inside the OPi file I can only see one Init file which doesn't include any attributes.

Is there an attribute file missing?

Thanks for your help in advance

@RobinLCR35
Copy link

RobinLCR35 commented Sep 26, 2023

Hello IZTOK71,

Could you please tell us how did you install the OPI.GPIO package ?

This repository is developped upon other implementation of OPI.GPIO and if you download it without specifying this github path precisely, you might donwload that version (which not implement the functions for the H616 board)

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

No branches or pull requests

2 participants