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.2.dev0.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for contuino-0.0.2.dev0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 686079362ea7415075b0d766c7b400d5cd0f7d6052cd9a3b91a5f6cb1f36e310 |
|
MD5 | 551165589a47d522f8b50d603a34cf11 |
|
BLAKE2b-256 | 036f4dc65cc41e2d9248edeadf69868ee48aefc8ad6e7f7670d0b4ca28353f1e |