Skip to content

8086net/usb-pwr-switch-pro-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Code examples for 8086 Consultancy USB Power Switch Pro

Most of the examples here currently are for CircuitPython 8, see https://learn.adafruit.com/getting-started-with-raspberry-pi-pico-circuitpython/circuitpython to get the latest CircuitPython onto your Pico / Pico W.

Examples

Slide (or Toggle) Switch [ for Pico / Pico W ]

USB Power Switch Pro with slide switch

Basic example which provides similar functionality to our original USB Power Switch but uses an internal Pull Up resistor.

Example code: CircuitPython

Momentary Push Button [ for Pico / Pico W ]

USB Power Switch Pro with push switch

Push to turn on / push to turn off, latched in software with configurable initial state.

Example code: CircuitPython

Wifi Buttons [ for Pico W ]

USB Power Switch Pro Wifi Buttons Browser

Shows a simple website with buttons to toggle power on/off.

Example code: CircuitPython

Internal Temperature Sensor [ for Pico / Pico W ]

Turns USB port on at a set temperature and off when it has decresed a set number of degrees C.

Example code: CircuitPython

Wifi Boost [ for Pico W ]

USB Power Switch Pro Wifi Boost Browser

Provides a website with On/Off/Refresh buttons at the top and On/Boost buttons for +15/30/45/60 minutes increments.

Example code: CircuitPython

Wifi RESTful Switch

An untested example for Home Assistant users wishing to integrate the USB Power Switch Pro

Example code: CircuitPython

About

Example scripts for USB Power Switch Pro

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages