Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
#include <stdbool.h>
#include <esp_err.h>
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include <driver/spi_master.h>
#define CS_PIN GPIO_NUM_26
#define CLK_PIN GPIO_NUM_25
#define MOSI_PIN GPIO_NUM_22
#include <stdio.h>
#include <stdbool.h>
#include <esp_err.h>
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include <driver/spi_master.h>
#define CS_PIN GPIO_NUM_26
#define CLK_PIN GPIO_NUM_25
#define MOSI_PIN GPIO_NUM_22