Skip to content

Instantly share code, notes, and snippets.

#include "driver/uart.h"
#include "driver/gpio.h"
#include "driver/ledc.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
// UART Configuration
@Bhakti-A
Bhakti-A / speed control
Created August 6, 2025 11:34
test codes
#include <stdio.h>
#include <math.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "driver/gpio.h"
#include "driver/ledc.h"
// Motor control pins
#define MOTOR_DIR_PIN GPIO_NUM_18
#define MOTOR_PWM_PIN GPIO_NUM_19