adafruit / Adafruit_FreeTouch

A QTouch-compatible library
41 stars 15 forks source link

Documentation of the library functions #10

Closed timonsku closed 6 years ago

timonsku commented 6 years ago

I tried to sift through the QTouch user guide in order to understand some of the things at play in the PTC but I'm not really smarter than before. What I'm mostly interested in is what these functions are doing, the concept behind them and how they are practically used. For example what is a compensation capacitor, what do I do with that and how? Some insight especially for the functions below would be much appericated!

  void setSeriesResistor(series_resistor_t res);
  void setFreqHopping(freq_mode_t fh, freq_hop_t hops = FREQ_HOP_1);
  void setCompCap(uint16_t cc);
  void setIntCap(uint8_t ic);
ladyada commented 6 years ago

since we reverse engineered it from the qtouch library https://www.mouser.com/pdfdocs/SAMA5D2_PTC_Firmware_UG.pdf and similar PDF's are going to have the most details! microchip app engineers/support will also be most helpful, we don't have any insight into the low-level functionality (and they're not super forthcoming either :)

timonsku commented 6 years ago

Thanks a lot, that document is super helpful! I wasn't super interested in the low level, I was just confused what the heck these things mean at all :)