Article Index
PythonGZeroPrograms 2e
Chapter 2
Chapter 3
Chapter 5
Chapter 6
Chapter 8
Chapter 9
Chapter 10
Chapter 11
Chapter 12
Chapter 13
Chapter 14
Chapter 15
All Pages
Page 5 of 13
Page 65
from gpiozero import Device
from time import sleep
Device()
pin=Device.pin_factory.pin(4)
pin._set_function('output')
while True:
pin.state=1
sleep(1)
pin.state=0
sleep(1)
Page 70
from gpiozero import Device
Device()
pin = Device.pin_factory.pin(4)
pin._set_function("output")
while True:
pin.state=1
pin.state=0
<< Prev
Next >>
Main Menu
Home
Books
Programming the ESP32 in MicroPython
Programmer’s Python: Async
Programmer's Python: Everything is an Object 2e
Programmer’s Python: Everything is Data
Programming The Raspberry Pi Pico/W In C 2ed
Programming The Raspberry Pi Pico/W In MicroPython Second Edition
Raspberry Pi IoT in C Third Edition
Raspberry Pi IoT In C Using Linux Drivers 2e
Raspberry Pi IoT In Python Using GPIO Zero 2e
Android Programming In Java
Raspberry Pi IoT In Python Using Linux Drivers 2e
Android Programming Kotlin
Applying C For The IoT With Linux
Deep C#
Explore Intel Edison
Financial Functions
Fundamental C: Getting Closer To The Machine
JavaScript Async
JavaScript Bitmap Graphics With Canvas
JavaScript Jems
Just JavaScript
Just jQuery: Events, Async & AJAX
Just jQuery: The Core UI
Micro:bit IoT In C Second Edition
Programmer's Guide To Kotlin 3ed
The Programmer’s Guide To Theory
The Trick Of The Mind
Master the Raspberry Pi Pico in C: WiFi with lwIP & mbedtls
Extending & Embedding Python Using C
Deep C Dives: Adventures in C
Programming The ESP32 In C Using The Espressif IDF
Author's Pages
Ian Elliot
Mike James
Harry Fairhead
Contact Us