Skip to content

Saving per-object's memory

Choose a tag to compare

@solamyl solamyl released this 27 Dec 23:54
· 2 commits to master since this release
67cb951

per-object memory was reduced to 10 bytes from original amount of 24 bytes for JC_Button class.

changes to reduce memory consumption per object when the class is instantialized

  • debounce time limited to 16-bits and 60.000 msec
  • m_time member removed. it stored "actual" time, replaced with millis() where necessary
  • packed boolean class members to 1-bit values
  • polished param names and types