On Sat, 16 Nov 2019 22:13:11 -0500, Dennis Lee Bieber
declaimed the following:
>On Sat, 16 Nov 2019 09:36:11 +0100, "R.Wieser"
>declaimed the following:
>
>
>>
>>Asking for a method that will do a pinnumber translation (using its internal
>>tables) is probably too much to ask for too ?
>>
>https://github.com/gpiozero/gpiozero/blob/master/gpiozero/pins/data.py
>starting at line 1182, though that also requires the information extracted
>from the table at line 448
Oh -- my purpose in pointing that out...
There are NO "internal tables". The only "internal" scheme is the
Broadcom numbering system. EVERY GPIO library that allows for alternate
numbering schemes has to implement the translation -- which requires
identifying which board it is running on, using that information to select
the subset of its own table that applies, and only then being able to
convert to Broadcom numbers (I don't recall seeing any that do the reverse
translation -- given a Broadcom number, return the representation of the
alternate naming).
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|