Tmx-Nano-2040-WiFi-AIO
Tmx-nano-2040-wifi-aio is a member of the Telemetrix family and is a Python asyncio client specifically tailored to remotely control and monitor the Arduino Nano RP2040 Connect using Python scripts running on your PC.
When paired with the Telemetrix4Connect2040 custom Arduino server sketch, control and monitoring of the Arduino Nano RP2040 Connect accomplished using a Wi-Fi link between the PC and the Arduino.
This library supports the following features:
- Analog and Digital Input
- Digital Outputs including PWM
- Onboard devices:
- IMU
- Microphone
- RGB LED
- I2C device communications.
- SPI device communications.
- HC-SR04 Type distance sensors.
- DHT Type humidity/temperature sensors.
- Servo motors.
- NeoPixel strips.
A User's Guide explaining installation and use is available online.
The Python API for may be found here.
Here is a sample project that blinks the Arduino Board LED:
import asyncio
import sys
from tmx_nano2040_wifi_aio import tmx_nano2040_wifi_aio
"""
Setup a pin for digital output and output a signal
and toggle the pin. Do this 4 times.
"""
# some globals
DIGITAL_PIN = 13 # arduino pin number
async def blink(my_board, pin):
"""
This function toggles a digital pin.
:param my_board: an tmx_nano2040_wifi_aio instance
:param pin: pin to be controlled
"""
# set the pin mode
await my_board.set_pin_mode_digital_output(pin)
# toggle the pin 4 times and exit
for x in range(4):
print('ON')
await my_board.digital_write(pin, 0)
await asyncio.sleep(1)
print('OFF')
await my_board.digital_write(pin, 1)
await asyncio.sleep(1)
# get the event loop
loop = asyncio.get_event_loop()
# instantiate tmx_nano2040_wifi_aio
board = tmx_nano2040_wifi_aio.TmxNano2040WifiAio(ip_address='192.168.2.246')
try:
# start the main function
loop.run_until_complete(blink(board, DIGITAL_PIN))
loop.run_until_complete(board.shutdown())
except KeyboardInterrupt:
loop.run_until_complete(board.shutdown())
sys.exit(0)
Metadata
Release files for tmx-nano-2040-wifi-aio 1.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tmx_nano_2040_wifi_aio-1.2.2.tar.gz | 23.6 kB | Without provenance | Details for tmx_nano_2040_wifi_aio-1.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tmx_nano_2040_wifi_aio-1.2.2-py3-none-any.whl | Python 3 | none | any | Details for tmx_nano_2040_wifi_aio-1.2.2-py3-none-any.whl |
Total release size: 61.2 kB
Release files / tmx_nano_2040_wifi_aio-1.2.2.tar.gz
| Download URL | tmx_nano_2040_wifi_aio-1.2.2.tar.gz |
|---|---|
| Size | 23.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4165f850d6e74c1beacc2e0570341357bf44fe050f7c20d4aefbd3dbbebcd255
|
|
BLAKE2b-256 checksum How to use checksums |
3130c619c31a4fcf8d02fcff22861d0b26da019f4da02fd8f1f92fa81996ac05
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.7
|
Release files / tmx_nano_2040_wifi_aio-1.2.2-py3-none-any.whl
| Download URL | tmx_nano_2040_wifi_aio-1.2.2-py3-none-any.whl |
|---|---|
| Size | 37.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d35ef353a8f9a133cb4b2d546cd78aeecad1fd7ced4011426794f81e703bf498
|
|
BLAKE2b-256 checksum How to use checksums |
76d422d810c15cff1b5a612b7d6e5fb21f7f81134084b7118a064c7c6077a360
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.7
|
Security for tmx-nano-2040-wifi-aio 1.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.