Replies: 1 comment 1 reply
-
@Bwanna Not that I'm aware of. Your idea of checking sensors less often seems like the best approach but 7 sensors reading each time through your loop() doesn't seem like much overhead. Not enough to slow performance of your touch screen. Although the ADS1115 is not very fast - from the datasheet 'The ADS111x can perform conversions at data rates up to 860 samples per second (SPS).' i.e. 1.16 ms. Which isn't awful. So, Now the real issue is what library are you using to read the ADC1115? If Adafruit's Adafruit_ADS1X15 library you need to use 'getDataRate' to determine default sample rate and 'setDataRate' commands to boost sample rate speed.
Maybe this could help. Also, not using floating point math will also speed things up. Paul-- |
Beta Was this translation helpful? Give feedback.
-
Hi,
What a great project GUISLice is making display work so much easier. Thanks for this! I just have a question about how to increase touchscreen response time with an STMPE610.
My working project reads 7 sensors via two ADC1115 devices and processes the readings for display via GUISlice. The display includes RadioButtons that changes various display presentations, such as, temperature between F and C and 12h/24h clock setting.
The sketch is rather large and cycles constantly through the measuring/processing of the sensors, eating up plenty of MCU time... and likely the reason for delayed response to touchscreen actions. I'm looking at changing this to maybe reading/processing sensors once per second instead of continuously.
My question: Is there a method of using the STMPE610 interrupt to affect a quick response?
Thanks,
Steve
Beta Was this translation helpful? Give feedback.
All reactions