Terminal interface for crow
Project description
druid
A basic REPL for crow with some utilities
Setup
Requirements:
- Python 3.5+
- Windows & OS X: https://www.python.org/downloads/
- Linux:
sudo apt-get install python3 python3-pip
or equivalent
pip
andsetuptools
pyserial
andprompt_toolkit
Note: you might need to use python
and pip
instead of python3
and pip3
depending on your platform. If python3
is not found, check that you have python >= 3.5 with python --version
.
Install and run:
# Ensure setuptools is up to date
pip3 install --upgrade setuptools
# Install druid
pip3 install .
# Run druid :)
druid
Druid
Start by running druid
-
type q (enter) to quit.
-
type h (enter) for a list of special commands.
-
input values are printed on the top line
-
will reconnect to crow after a disconnect / restart
-
scrollable console history
Example:
druid
//// druid. q to quit. h for help
> x=6
> print(x)
6
> output[1].volts = 0
> q
Execute a lua script and enter the REPL from the command line:
druid examples/test-2.lua
Diagnostic logs are written to druid.log
.
Upload
python3 upload.py examples/test-2.lua
Uploads the provided lua file to crow & stores it in flash to be executed on boot.
Download
python3 download.py
Prints to screen. Copy to file by running:
python3 download.py > feathers.lua
Examples
Druid comes with a bunch of example scripts to help introduce crow's syntax, and spur your imagination with some zany ideas. Here's the list with a brief description of each (most scripts have a longer description including the assignment of ins and outs at the top of the script):
boids.lua
: four simulated birds that fly around your inputbooleanlogic.lua
: logic gates determined by two input gatesclockdiv.lua
: four configurable clock divisions of the input clockcvdelay.lua
: a control voltage delay with four taps & looping optiongingerbread.lua
: clocked chaos generatorssamplehold.lua
: sample and hold with quantization & randomnessseqswitch.lua
: route an input to 1 of 4 outputs with optional 'hold'shiftregister.lua
: output the last 4 captured voltages & play just friendsstop.lua
: reset crow
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
Built Distribution
Hashes for monome_druid-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f470e7f2a0054d3ab4d1682be846891f8b0fea7918fad618435e51f9679cc079 |
|
MD5 | 0e807d2a65d0feb93f011f9b49e4fe5f |
|
BLAKE2b-256 | 58aff06aae8a414c5dd60b1147d98bc19de01992639f125bfd710ca706a08734 |