Lab03_part02
Lab03_part02
---------------TIMER CALCULATOR--------------------------------------
https://deepbluembedded.com/stm32-timer-calculator/
----------------------------------------------------
}
}
else{
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_3,0);//PTC off
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_4,1);//LED off
Volt = 0;
}
}
}
/* USER CODE END 0 */----------------------------------------
------------------------------------------------------
#include <stdbool.h>
---------------------------------------------------
float temperature;
float Dtemp=0;
//bool LED = 0;// Control to LED
bool MCONTROL = 0;//Control to PTC
int Volt = 0;
-------------------------------------------------
STM32CubeMonitor
----------------------------write the value to memory address------------------
{
"variablelist":[
{
"address":"0x20000000",
"type":1,
"value":"{{payload}}"
}
],
"accesspoint":0
}
-----------------------bool to uint8_t----------------------
msg.payload = msg.payload ? 1 : 0;
return msg;
------------------------------------------------------
------------------------unit8_t to bool----------------
msg.payload = !!msg.payload;
return msg;
------------------------------------------------------
Configure