pimoroni-pico/micropython/examples/automation2040w
helgibbons 86b1cd40dc Update readmes 2022-10-06 15:54:50 +01:00
..
web_io_interface Automation 2040w MicroPython PWM (#489) 2022-10-06 12:27:46 +01:00
README.md Update readmes 2022-10-06 15:54:50 +01:00
pwm_outputs.py Add Automation 2040 W Mini init to examples 2022-10-06 15:54:16 +01:00
read_adcs.py Automation 2040w MicroPython PWM (#489) 2022-10-06 12:27:46 +01:00
read_inputs.py Add Automation 2040 W Mini init to examples 2022-10-06 15:54:16 +01:00
reset_automation.py Libraries and examples for Automation 2040 W (#418) 2022-07-01 07:05:37 +01:00
switches_and_leds.py Automation 2040w MicroPython PWM (#489) 2022-10-06 12:27:46 +01:00
toggle_outputs.py Add Automation 2040 W Mini init to examples 2022-10-06 15:54:16 +01:00
toggle_relays.py Add Automation 2040 W Mini init to examples 2022-10-06 15:54:16 +01:00

README.md

Automation 2040 W Micropython Examples

Function Examples

These examples will work with Automation 2040 W and Automation 2040 W Mini. If you have an Automation 2040 W Mini, initialise your board with board = Automation2040WMini to see the correct numbers of inputs, outputs and relays!

PWM Outputs

pwm_outputs.py

Shows how to PWM the output terminals of Automation 2040 W.

Read ADCs

read_adcs.py

Shows how to read the ADC terminals of Automation 2040 W.

Read Inputs

read_inputs.py

Shows how to read the input terminals of Automation 2040 W.

Toggle Relays

toggle_relays.py

Demonstrates how to toggle the actuation state of each of Automation 2040 W's relays.

Toggle Outputs

toggle_outputs.py

Demonstrates how to toggle each of Automation 2040 W's output terminals.

Switches and LEDs

switches_and_leds.py

An example of the user switches and LEDs on Automation 2040 W.

Reset Automation

reset_automation.py

A simple program that resets Automation 2040 W, turning off its Relays, Outputs, and LEDs.

Wireless Examples

The wireless examples need network_manager.py and WIFI_CONFIG.py from the micropython/examples/common directory to be saved to your Pico W. Open up WIFI_CONFIG.py in Thonny to add your wifi details (and save it when you're done).

Web IO Interface

web_io_interface/

Provides a basic web interface for all your Automation 2040W features.

Needs lib/tinyweb from micropython/examples/common!