|
PixelKey
NeoPixel USB Key
|
A list of error codes can be found here.
Retreives a configured value. See below for available configuration keys.
Returns
error or key does not exist
The total number of NeoPixels connected to the PixelKey.
Default: 4
The maximum frame size is approximately (1/refreshrate - 50us)/31.2us. This is about 1065 NeoPixels for 30 fps.
The number of refresh cycles per second. Controls the update rate of keyframes.
Default: 30
This is limited by the total number of attached NeoPixels.
Maximum refresh rate is approximately 1/(framesize * 31.2us + 50us).
Saves a configuration value. See below for available configuration keys and values.
Returns on error or key does not exist
Resumes keyframe processing.
Prints the current device status.
Returns
Stops keyframe processing, clears the keyframe buffer, and turns off (sends #000000) all attached NeoPixles.
Returns the current RTC time.
Returns
Returns "RTC not set" error if the RTC has not been programmed.
Sets the current time for the RTC. Accepts an ISO-8601 timestamp, but the time specifier T may be replaced with a space or underscore. The time zone is optional but highly suggested.
Returns OK on success or <error> NAK if RTC failed to set.
Allows synchronization within several 10s of ms to an external clock source like the host computer. This command should not be used manually.
Once started the host and PixelKey exchange timestamps until the standard deviation is acceptable or a timeout occurs. The state machine flow is as follows:
$time-sync.OK.<error> NAK to host to end time-syncOK to host to end time-sync.Prints version information.
Returns
where
MM is the major version,mm is the minor version, andpp is the patch.Semantic versioning is used so other values may be present.
⚠️ Warning: There be dragons ahead. Only use these commands if you know what you're doing. Incorrect usage can break the device.
Clears the upgrade region and initializes anything necessary for the FW upgrade.
Arguments
Transfers a block to the device. Blocks are always 64 bytes long.
Arguments
Verifies a received firmware image.
Returns
<image crc> OK on full image receipt and CRC check pass. includes calculated CRC.<block list> 1 NAK on incomplete image, includes list of missing blocks.<image crc> 2 NAK on CRC mismatch, includes calculated CRC.Reboots into the bootloader and copies the new image.
* These commands may exist on a separate USB pipe and may not be exposed for the serial command set.