Files
hantai_project/code/esp32c3_espidf/main/spi.h
T
2026-02-18 20:08:58 +08:00

22 lines
352 B
C

#ifndef SPI_H
#define SPI_H
#include <stdio.h>
#include <inttypes.h>
#include "driver/gpio.h"
#include "driver/spi_master.h"
#include "esp_log.h"
#include "esp_system.h"
#define VSPI_MISO -1 //接收引脚不使用,仅发送
#define VSPI_MOSI 3
#define VSPI_SCLK 2
void spi_init();
extern spi_device_handle_t lcd_spi;
#endif /* SPI_H */