Reader small image

You're reading from  Practical Python Programming for IoT

Product typeBook
Published inNov 2020
Reading LevelIntermediate
PublisherPackt
ISBN-139781838982461
Edition1st Edition
Languages
Right arrow

Understanding digital IO

Each of the Raspberry Pi GPIO pins can perform digital input and output. Digital simply means something is either fully on or fully off—there is no middle ground. We've been working with simple digital IO in previous chapters:

  • Our LED was either on or off.
  • Our button was either pressed (on) or non-pressed (off).

You will come across several interchangeable terms used to describe digital states, including the following:

  • On = High = True = 1
  • Off = Low = False = 0

Digital IO is a form of basic IO. Analog IO is another, so we will explore it next.

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Practical Python Programming for IoT
Published in: Nov 2020Publisher: PacktISBN-13: 9781838982461