I just recently started to explore the CYD.
I’ve been using the sample program provided to do the exploring.
I came across the map functions and initially wondered what they are doing.
Then I realized the pins used to get the touch coordinates must be Analog Input which would account for why a mapping function is necessary.
But then I wondered where the “magic” numbers came from (min/max x and min/max y) (200, 3700) (240, 3800).
Were they experimentally determined or taken directly from a technical specification document?
The CYD is a very interesting gadget. The display is rather complicated though.
I’ve been trying the examples in the Arduino IDE that came with the library installs.
Some work, some don’t.
Thanks,
Ray