Skip to content

Instantly share code, notes, and snippets.

View SarvagyaVaish's full-sized avatar

Survy Vaish SarvagyaVaish

View GitHub Profile
@technobly
technobly / tempDilutionFilt.cpp
Created January 9, 2014 21:05
Temperature filtering with a 1/16th Dilution Filter for Spark Core
//----------------------------------------------------
// Temperature filtering with a 1/16th Dilution Filter
// BDub 12-21-2013
//
// 1/16th of the new reading gets added to the ongoing
// running total of 16 virtual readings, with a little
// correction for the truncation process. Very fast
// filter for slow 8-bit uC's that don't have multiply
// or divide instructions.
//