PaxInstruments / t400-firmware

Firmware for the Pax Instruments T400 temperature datalogger
22 stars 5 forks source link

Performance improvements and 1/2 second sampling #229

Closed protological closed 8 years ago

protological commented 8 years ago

This branch changes how the t400 reads values, rather than read all 4 at one time we read as fast as we can which seems to be about 12 samples a second. This decouples the readings from the rest of the system. Adding in a 500ms timer kicked off when the 1Hz signal is received allows for 1/2 second sampling. Also added logic to show a message to the user when buttons are disabled.

Sketch uses 28,390 bytes (99%) of program storage space. Maximum is 28,672 bytes. Global variables use 2,306 bytes (90%) of dynamic memory, leaving 254 bytes for local variables. Maximum is 2,560 bytes.