dektronics / printalyzer-densitometer

Reflection and Transmission Densitometer for Photographic Darkroom Use
19 stars 4 forks source link

Add HID support to the device firmware #39

Closed dkonigsberg closed 2 years ago

dkonigsberg commented 2 years ago

The initial thought for getting measurements from the device to desktop software for analysis involved first capturing them in the companion desktop application and then moving them to analysis tools. These tools could be within the software itself, or within a spreadsheet the data would then be copy-pasted into.

However, if we surmise that the most common use case is simply to have an easy way to get measurements into a spreadsheet, then this approach is somewhat cumbersome and requires extra steps. Since our USB device implementation is entirely controlled by the firmware and thus somewhat flexible, there are more options.

One idea is to have the device optionally implement the HID class. This could be enabled and configured by on-device settings. In this mode, taking a measurement could simply "type" the resulting values into whatever application on the desktop computer the user had placed a cursor into.

Possible settings for this feature could include:

A sensible default would likely be the most basic format (e.g. "0.24") followed by ENTER.