Newer
Older
pyenergenie / src / energenie / drv / ino_ook / delay.c
@David Whale David Whale on 4 Apr 2016 306 bytes Reset, select, write working on Arduino

#include <arduino.h>
#include "system.h"
#include "delay.h"

void delaysec(uint8_t s)
{
  int i;
  for (i=0; i<s; i++)
  {
    delay(1000); // ms
  }
}


void delayus(unsigned int us)
{
  delayMicroseconds(us);
}

void delayms(unsigned int ms)
{
  delay((unsigned long)ms);
}

/***** END OF FILE *****/