fijam / gmdrec

gmdrec is a USB interface between your late 90's Sony portable MiniDisc recorder and your PC.
https://www.tindie.com/products/fijam/gmdrec/
BSD 3-Clause "New" or "Revised" License
29 stars 7 forks source link

Direct Linux I2C access + Gtk button GUI example #26

Closed thp closed 2 years ago

thp commented 2 years ago

Example code for how to access the I2C devices directly on Linux without having to go through the Adafruit libraries and without having to unload hid_mcp2221. Comes with a small Gtk GUI that just allows pressing of buttons on the remote (as long as the button is pressed in the Gtk UI, the resistor value will be valid, so one can e.g. fast forward or long-press by long-pressing the corresponding button on the UI).

Only implemented for Rev2 of the board, and tested with MZ-N510 only for now (text labels adjusted based on that). The "Vol-" value should be calculated from the other calibration values, right now it's hardcoded and works for my particular board (based on the EEPROM values there). Not sure if linear interpolation between "Stop" and "Vol+" is accurate enough, it did work for me.