Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void hold(const unsigned int &ms)
- {
- //unsigned long m = micros();
- //while (micros() - m < ms)
- unsigned long m = millis();
- while (millis() - m < ms)
- {
- yield();
- }
- }
- // chame a função hold com o valor do seu delay EX; hold(1000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement