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
Explore Intel Edison
Financial Functions
Micro:bit IoT In C Second Edition
Python
Programmer’s Python: Async
Programmer's Python: Everything is an Object 2e
Programmer’s Python: Everything is Data
Extending & Embedding Python Using C
Other Languages
Programmer's Guide To Kotlin 3ed
Deep C#
Theory
The Programmer’s Guide To Theory
The Trick Of The Mind
ESP32
Programming the ESP32 in MicroPython
Programming The ESP32 In C Using The Espressif IDF
Programming The ESP32 In C Using The Arduino Library
JavaScript
JavaScript Async
JavaScript Bitmap Graphics With Canvas
JavaScript Jems
Just jQuery: Events, Async & AJAX
Just jQuery: The Core UI
Just JavaScript
Android
Android Programming In Java
Android Programming Kotlin
C
Applying C For The IoT With Linux
Fundamental C: Getting Closer To The Machine
Deep C Dives: Adventures in C
Raspberry Pi
Raspberry Pi IoT in C Third Edition
Raspberry CM5 IoT In C
Raspberry Pi IoT In C Using Linux Drivers 2e
Raspberry Pi IoT In Python Using GPIO Zero 2e
Raspberry Pi IoT In Python Using Linux Drivers 2e
Raspberry Pi 5 IoT In C
Pico
Programming The Raspberry Pi Pico/W In C 2ed
Programming The Raspberry Pi Pico/W In MicroPython Second Edition
Master the Raspberry Pi Pico in C: WiFi with lwIP & mbedtls
Author's Pages
Ian Elliot
Mike James
Harry Fairhead
Contact Us