#include <stdio.h>
#include "driver/gpio.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "printer.c" // Ensure this is included correctly
#include "led_task.c"
// Define the GPIO pin for the LED
const int LED_PIN = GPIO_NUM_17;
const int LED_PIN_1 = GPIO_NUM_18;
void app_main() {
char* a = "OKAY"; // Define the string correctly
char* b;
// Configure the LED_PIN as a GPIO output
esp_rom_gpio_pad_select_gpio(LED_PIN);
gpio_set_direction(LED_PIN, GPIO_MODE_OUTPUT);
esp_rom_gpio_pad_select_gpio(LED_PIN_1);
gpio_set_direction(LED_PIN_1, GPIO_MODE_OUTPUT);
void (*calling_printer)(char*,char*) = &printer;
void (*led_output)(int,bool,int) = &led_output_func;
bool polarity = true;
while (true) {
(*led_output)(LED_PIN,polarity,1000);
polarity = !polarity;
(*led_output)(LED_PIN_1,polarity,1000);
}
}