Skip to content

frequency and period not initialized #211

@AKAMEDIASYSTEM

Description

@AKAMEDIASYSTEM

Hello, I'm trying to use the newly-supported frequency getters and setters, but running into some difficulty.

My script begins by initializing eQEP0 and eQEP1. Because I wasn't sure what the default encoder polling frequency was, I then go:

    print(qep0.frequency)
    qep0.frequency(1000000)
    qep1.frequency(1000000)

...this resulted in some python3 errors (I needed to wrap int() around some inputs in the frequency methods), and after clearing those up I encountered an error in which self._eqep.node.period is not initialized.
More specifically, I get the error

File "/usr/local/lib/python3.5/dist-packages/Adafruit_BBIO-1.0.8-py3.5-linux-armv7l.egg/Adafruit_BBIO/Encoder.py", line 279, in frequency
    self._eqep.channel, frequency, period))

...thanks in advance for any advice/help you can provide!

AKA

Metadata

Metadata

Assignees

No one assigned

    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