Command line tool to set the output voltage for VFLEX devices
Project description
An unofficial cli for setting the voltage on VFLEX devices with MIDI control
Why? I dunno, I like the idea of being able to work this without needing a website?
Installation
This requires that you have pipx installed on your system, using Python 3.12 or later.
Using pipx, install this tool with:
pipx install vflexctl
Usage
Reading your VFlex
To read your VFlex’s current state, use the read command:
$ vflexctl read VFlex Serial Number: <your serial here> Current Voltage: 12.00 LED State: Always On
You can set either your voltage, LED state (always on or not always on), or both:
vflexctl set -v <voltage> -l <always-on|disabled>
Voltage is set with the --voltage or -v flag, with your volts as XX.XX. For example:
vflexctl set -v 12 # Sets to 12V vflexctl set -v 5.50 # Sets to 5V vflexctl set -v 48.5 # Sets to 48.5V (if this exists?) vflexctl set -v 12.0000001 # Rounds to 12.00, and sets 12V
The VFlex communication over MIDI limits the max that you can set this to be around 65.5V (the limit of a 16-bit integer) Trying to set higher than this will prevent setting voltage.
LED state is set using the --led or -l flag, with the value as either:
vflexctl set -l always-on # The default "LED always on" behaviour vflexctl set -l disabled # The non-default "LED is off after a few minutes, except for error"
To set both, use both flags (as defined above) in any order.
Current state
This seems to be working. Setting values takes a bit longer than the web, since I’ve set this up to do the “startup dance” every time we try to set something (read serial, then read LED, then read Voltage).
An improvement could be to test if the setting works if it only reads the serial, and re-waking the device might not be needed since most operations are less than 5 seconds.
The plan is that this will work as long as you only have one inserted. Unless it’s extremely important, building selection is more work than what’s needed.
—
This is an independent hobby project. It is not affiliated with, endorsed by, or connected to any company. All product names, trademarks, and brands are the property of their respective owners.
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
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 vflexctl-0.1.2.tar.gz.
File metadata
- Download URL: vflexctl-0.1.2.tar.gz
- Upload date:
- Size: 16.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.14.0 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7eaa0de803d639135f7047ed8b99c5e8d53e7acb2baa21b290d79a18acff6be
|
|
| MD5 |
9295d8f02979f95e9943656a9c2d90e9
|
|
| BLAKE2b-256 |
e327359c9edfdd65f999816ec9c620f26d2c7b08d423063abe3305076acf1db3
|
File details
Details for the file vflexctl-0.1.2-py3-none-any.whl.
File metadata
- Download URL: vflexctl-0.1.2-py3-none-any.whl
- Upload date:
- Size: 22.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.14.0 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be470fecffc335aeb0f5845a21d2ac9aebc2803b2b6ccc301bf6a7345ad5a88f
|
|
| MD5 |
c681996a18019f4a1d96eda1b4bbbd5e
|
|
| BLAKE2b-256 |
65df508f741e51e601b18731531e59300a0c2d69550c5dca8e8198ea0645a6b1
|