I want my code to trigger an alarm when the temp is to high or to low, and after 1 minut the alarm should accelerate in speed until someone restarts it.
Does anyone know how to change (t5expq()) so that it turns of and on at different speeds to make this alarming sound?
Fwi im a beginner.
I want my code to trigger an alarm when the temp is to high or to low, and after 1 minut the alarm should accelerate in speed until someone restarts it. Does anyone know how to change (t5expq()) so that it turns of and on at different speeds to make this alarming sound? Fwi im a beginner.
include "gd32vf103.h"
include "drivers.h"
include "eclicw.h"
include "lcd.h"
include "ds18b20.h"
void ds18B20callBack(unsigned int temp){ LCD_ShowNum(8, 10, temp>>4, 2, WHITE); LCD_ShowNum(8, 30, temp%16, 2, WHITE); }
int main(void){ int ms=0, s=0, key, pKey=-1, c=0, idle=0; int lookUpTbl[16]={1,4,7,14,2,5,8,0,3,6,9,15,10,11,12,13};
}