Home Alert System

Dependencies:   PWM_Tone_Library DHT

Committer:
ethaderu
Date:
Tue Mar 05 02:34:44 2019 +0000
Revision:
3:78f223d34f36
Publish 1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ethaderu 3:78f223d34f36 1 #include "Utility.h"
ethaderu 3:78f223d34f36 2
ethaderu 3:78f223d34f36 3 void delay(int ms) {
ethaderu 3:78f223d34f36 4 wait_ms(ms);
ethaderu 3:78f223d34f36 5 }
ethaderu 3:78f223d34f36 6
ethaderu 3:78f223d34f36 7 char* strdup(const char* s) {
ethaderu 3:78f223d34f36 8 char* ret = (char*) malloc(strlen(s) + 1);
ethaderu 3:78f223d34f36 9 if (ret == NULL) { return ret;}
ethaderu 3:78f223d34f36 10 return strcpy(ret, s);
ethaderu 3:78f223d34f36 11 }