Article Index
ESP32PythonPrograms
Chapter 3
Chapter 4
Chapter 6
Chapter 7
Chapter 8
Chapter 9
Chapter 10
Chapter 11
Chapter 12
Chapter 13
Chapter 14
Chapter 15
Chapter 16
Chapter 17
Chapter 18
All Pages
Page 2 of 16
Page 44
from machine import Pin
import time
pin = Pin(2, Pin.OUT)
while True:
pin.value(1)
time.sleep(1)
pin.value(0)
time.sleep(1)
Page 46
from machine import Pin
import time
def toggle(pin):
temp = pin.value()
temp = not temp
pin.value(temp)
pin = Pin(2,Pin.OUT)
while True:
toggle(pin)
time.sleep(1)
<< 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
Programming The ESP32 In C Using The Arduino Library
Author's Pages
Ian Elliot
Mike James
Harry Fairhead
Contact Us