Skip to main content
. 2022 Jul 13;22(14):5235. doi: 10.3390/s22145235
Algorithm 1 Manipulation sensing
  • OldTouchStatus←0

  • repeat

  •      for all {InputTouchi|1≤i≤5}  do

  •          if InputTouchi is Touched  then

  •              InputTouchi←1

  •          else

  •              InputTouchi←0

  •          end if

  •      end for

  •     ∑i=15(Touchedi←2i∗InputTouchi)      ▹ (Equation (2)).

  •      if TouchStatus≠OldTouchStatus  then Publish Message with TouchStatus

  •         OldTouchStatus←TouchStatus

  •      end if

  • until Deep Sleep Mode