TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ALL
from: DENNIS LEE BIEBER
date: 2019-11-17 12:47:00
subject: Re: Accessing GPIO pins u

On Sun, 17 Nov 2019 12:16:22 +0100, Tony van der Hoff 
declaimed the following:

>
>BUT at present, RPi.GPIO fulfils my requirements very well. So, what is
>the reason for deprecating it?

 gpiozero:

1 allows use of alternate pin naming schemes without being locked into
one mode

2 allows use of alternate low-level GPIO libraries (default is still
RPi.GPIO, but if one sets it to use pigpio then one has the ability to have
kernel/DMA based PWM rather than fully software based)

3 includes a module for a wide set of SPI-based MCPxxxx ADC chips, along
with classes specific to servos, motors, etc.

4 has a 240 page manual -- RPi.GPIO has a short set of example usage.

5 Class-based (RPi.GPIO is just bare functions except for the PWM) -- one
specifies the pin only when instantiating a class, and from then one uses
methods of the instance; reduced risk of mistyping a pin number.


--
 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)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.