Closed Jockra closed 3 years ago
Crap... I changed the registers from private (underscore) to public (no underscore) in #96 because of the warnings about accessing private attributes, I must have forgotten to do the same in the subclasses. Thanks for making a fix!
Occurrences of _gpio
, _iodir
, and _gppu
should be changed to gpio
, iodir
, and gppu
.
Also to pass the checks, if you are using VSCode, install the Python and Pylance extensions and install the formatter with pip install black
. After that you can open the workspace file and code will be formatted automatically and errors will be highlighted. I will be adding instructions for that to CONTRIBUTING.md but have not gotten to it yet.
At least switching on the internal pull up resistors does not work, because of missing underscores of class member variables ( self._gpio, self._iodir, self._gppu). The derived class used its own variables.