SHARE
TWEET

Untitled

a guest Apr 23rd, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void startPins(){
  2.   pinsState = (bool*) malloc((numPins + 1) * sizeof(bool));
  3.   pinsLastChange = (unsigned long*) malloc((numPins + 1) * sizeof(unsigned long));
  4.  
  5.   for(int i=0; i< numPins;i++) {
  6.     pinsState[i] = false;
  7.   }
  8.  
  9.   for(int i=0; i<= numPins;i++) {
  10.     pinsLastChange[i] = millis();
  11.   }
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top