Qtouch with megaTinyCore? #368
Replies: 1 comment 7 replies
-
There is another issue (I may have3 closed it after it went over a year with no action) taking about this. That other core, while missing many features and only supported the 3216 and 3217... They had a way to package the qtouch libraries - I think they used the Atmel or Microchip tooling to do it, but they had a few libraries and some header files defining a whole boatload of functions, that were in that precompiled binary... It strikes me that, starting from files like that, an individual with no respect for international copyright law, located somewhere beyond the reach of western legal systems, and who had nothing to lose from infuriating microchip (in other words someone who is not me - I may have no respect for copyrights, but I do fear their enforcement, and in any event, I prefer to stay on Microchip's good side and doing this is not the way to stay there)..... one could extract the .o files from the .a's with avr-ar -x, then dump them to assembly with avr-objdump -d -r - that would get you dissembled object files.... with the destination of the jumps and calls included.... A trivial python script to turn things like into You'd need to figure out how to deal with calls (I don't know offhand) too, but you'd then end up with a legal (syntactically - as I read the license, this is quite certainly not legal to do - or at least to distribute if you did) assembly listing. which could then be turned into (again, probsbly easiest to do wiyh python script) into a bunch of file declarations full of assembly. They could be declared ((naked)) since these definitions alreadty have the prologue and epilogue.... and then pasted into your new arduino library, a working library could be made that way... But yeah, that's pretty much a non-starter thanks to Atmel -> microchip's mystefying decision to keep QTouch on lockdown, even if it costs them sales, which I am sure it has. You really wonder what they are hiding.... Would it have revealed too much about the internals of the design? Did they keep it secret just because they didn't trust the users to write code that worked, and the license was just incidental/reflexive secrecy? Was there something about the code that reflected poorly on the author? Maybe they used an algorithm that they' would be required to pay license fees for and they're not? Could be anything! AAaanyway..... What that other core did doesn't seem to have gotten them in trouble, so I think we could do that. I just don't care about qtouch, and have too much else to do. |
Beta Was this translation helpful? Give feedback.
-
Does anybody have any experience using the QTouch library with the core? I have a project in mind for a 1614 and have tested the QTouch library on its own in Studio, but now want to expand to use some other libraries in Arduino IDE. Is there a "best practice" ?
FYI, for those not familiar, the PTC (peripheral touch controller) is pretty much a black box from a Microchip perspective and only binary versions of QTouch are readily available.
Beta Was this translation helpful? Give feedback.
All reactions