Uncategorized

GPIO Zero reading notes

GpioZero Library/BoilerPlate/API Doc 1.5.1 – B Nuttall
https://gpiozero.readthedocs.io/en/stable/

classes, not functions
Control GPIO over USB, remote GPIO, mock GPIO, prototyping without hardware

Eg HC-SR04 Distance Sensor

Comparing and GPIO and GPIO Zero
https://kknews.cc/code/jebak4p.html

pros using button as example, front end wrapper, simplifier setup, initialization

cons – no pull up setting

Migrating from GPIO
https://gpiozero.readthedocs.io/en/stable/migrating_from_rpigpio.html
Installing GPIO Zero
https://gpiozero.readthedocs.io/en/stable/installing.html

GPIO Zero is here – Posted by Ben Nuttall Raspberry Pi Community Manager Creator of GPIO Zero 13th Feb 2019 at 10:16 am2019

GPIO Zero v1.5 is here!

boilerplate, pin factories,

Boilerplate code From Wikipedia, the free encyclopedia
https://en.wikipedia.org/wiki/Boilerplate_code

GPIO Zero provides classes which represent devices, so instead of having a pin number and telling it to go high, you have an LED and you tell it to turn on, and instead of having a pin number and asking if it’s high or low, you have a button and ask if it’s pressed. There is also no boilerplate code to get started — you just import the parts you need.

Categories: Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.