So I snagged one of those nice WaveShare 1.28" round LCDs, with the GC9A01 driver. Got that working with a library found on here, so that's great. Now I'm trying to get the touch screen working, and there's a couple of libraries that seem simple enough, but neither of them compile because they're made for the ESP8266. I'm using a Teensy 4.1.
The first one, (https://github.com/fbiego/CST816S/tree/main) invokes "FunctionalInterrupts.h" from the ESP8266 standard libraries, and won't compile. I'm not experienced enough to figure out how to change from that to the Teensy interrupts. They seem similar, but it's all magic to me at this point.
The second one (https://github.com/koendv/cst816t/blob/master/src/cst816t.cpp )seems to be more fleshed out, but it fails when calling TwoWire(SDA, SCL) - which, again, is how it's done in the ESP8266 ecosystem.
In both cases, I don't know how to refactor the library to make them work. I suspect the first one would be a lot easier, but...
Help!
Also, I'm using the Audio board, as I want to make this a (strange) but functional audio player. So I'm using alternate pins - specifically, SDA2 (25), SCL2 (24), RST (37) and INT (40).
The first one, (https://github.com/fbiego/CST816S/tree/main) invokes "FunctionalInterrupts.h" from the ESP8266 standard libraries, and won't compile. I'm not experienced enough to figure out how to change from that to the Teensy interrupts. They seem similar, but it's all magic to me at this point.
The second one (https://github.com/koendv/cst816t/blob/master/src/cst816t.cpp )seems to be more fleshed out, but it fails when calling TwoWire(SDA, SCL) - which, again, is how it's done in the ESP8266 ecosystem.
In both cases, I don't know how to refactor the library to make them work. I suspect the first one would be a lot easier, but...
Help!
Also, I'm using the Audio board, as I want to make this a (strange) but functional audio player. So I'm using alternate pins - specifically, SDA2 (25), SCL2 (24), RST (37) and INT (40).