Skip to content

GPIO.output still extremely slow in V1.07 on Stretch #190

@MrBillium

Description

@MrBillium

I am still struggling to get this library working well on Stretch.
With a brand new load of latest Stretch IOT image ( 11-4-17) and no changes except your prerequisites and installation, I am getting a 900mS run time for setting a pin 100 times. The same code take 3mS running on Jessie. This problem is independent of Python version and I have tried both BBB and BBG.

Bill

`import Adafruit_BBIO.GPIO as GPIO
import timeit

pin = 'P9_14'

GPIO.setup(pin, GPIO.OUT)

def setoutput():
for x in range(1, 10):
GPIO.output(pin, True)
GPIO.output(pin, False)

run 5 times, 10 x 2 x 5 = 100 outputs

result = timeit.Timer(setoutput).timeit(5)
print('time to complete 100 sets = ', result)
GPIO.cleanup()`

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy