Basic Flash LED doesn't work with Planet Debug
Posted: 19 Jul 2022 15:19
I do not own a Mikroe Dev board, but I am trying to test them out for a potential project. When following the Basic Embedded Kit tutorial from YouTube, running the LED blink on Clicker 2 for STM (arbitrary choice of board), nothing seems to be happening. Here is my code :
Code: Select all
#include "board.h"
#include "drv_digital_out.h"
static digital_out_t led_pin1;
static digital_out_t led_pin2;
void application_init(){
digital_out_init(&led_pin1, PE12);
digital_out_init(&led_pin2, PE15);
}
void application_task(){
digital_out_toggle(&led_pin1);
Delay_ms(500);
digital_out_toggle(&led_pin1);
Delay_ms(500);
}
int main(void)
{
/* Replace with your application code */
application_init();
while (1)
{
application_task();
}
return 0;
}
main();