Contuino client.
Project description
Contuino project: make arduino controlled games
Usage:
from contuino import *
board = MyBoard()
board.board_port = 'COM3'
board.baud_rate = 115200
board.server_address = 'x.x.x.x'
board.server_port = ''
board.wifi_ssid = ''
board.wifi_password = ''
board.username = 'testhash'
board.name = 'board name'
board.message = 'board message'
# assign action SHOOT to gpio pin 2
action_digital = GpioAction()
action_digital.event = Events.SHOOT
action_digital.pin = 2
action_digital.sensor = Sensors.TOUCH
action_digital.sensor_code = "XXXX1234"
board.add_action(action_digital)
# assign action SHOOT to analog pin 0
action_analog = GpioAction()
action_analog.event = Events.SHOOT
action_analog.pin = 0
action_analog.analog = True
action_analog.sensor = Sensors.TOUCH
action_analog.sensor_code = "XXXX1234"
board.add_action(action_analog)
# flash micropython
board.flash_micropython()
# deploy and initialize contuino script
board.init_contuino()
# start serial prompt
board.putty_serial_prompt()
features:
flashing micropython
generating the boot.py script for a board running micropython
deploying the boot script to the board running micropython
reading analog and digital sensor input
sending data to server
opening putty serial prompt
todo:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
contuino-0.0.5.dev0.tar.gz
(401.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file contuino-0.0.5.dev0.tar.gz.
File metadata
- Download URL: contuino-0.0.5.dev0.tar.gz
- Upload date:
- Size: 401.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9c0600b5b7d4da9321f50e1d680676d270eefdf78f7d8bd3ca22dceeb2a3035
|
|
| MD5 |
15c42380e3217e1f8a8fcba4f472256c
|
|
| BLAKE2b-256 |
8b5ad35be137570569f2cf4de97f378de2849aeaa8bab71ebc4484164842f631
|
File details
Details for the file contuino-0.0.5.dev0-py2.py3-none-any.whl.
File metadata
- Download URL: contuino-0.0.5.dev0-py2.py3-none-any.whl
- Upload date:
- Size: 799.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a4eabc2fb26c80686e4b680bd4367a7c4c42d89599e710288d7ebbf0f10b2ba
|
|
| MD5 |
67a7c8faab34dfd00b8af77f454894a6
|
|
| BLAKE2b-256 |
190adc2707065d06a338eb12b227b2fc364a984a713b4ce5b4db38dfbbf71b15
|