Advertisement
baldengineer

quick switch example

Apr 6th, 2017
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.37 KB | None | 0 0
  1.   for (int j = 0; j < EEPROM.length() ; j++){
  2.     while (findFirst == 0){
  3.       switch (EEPROM.read(j)) {
  4.         case acitivity1:
  5.         case acitivity2:
  6.         case acitivity3:
  7.         case acitivity4:
  8.         case acitivity5:
  9.         case acitivity6:
  10.         case acitivity7:
  11.         case acitivity8:
  12.         case acitivity9:
  13.             found = j;
  14.             findFirst++;
  15.         break;
  16.  
  17.         default:
  18.             // nothing matched
  19.       }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement