mirror of
https://github.com/lumapu/ahoy.git
synced 2025-07-02 17:17:16 +02:00
fix ESP8266 compile
This commit is contained in:
parent
34f898df51
commit
c7e01c849d
1 changed files with 3 additions and 7 deletions
|
@ -6,15 +6,10 @@
|
|||
#ifndef __ESP32_3WSPI_H__
|
||||
#define __ESP32_3WSPI_H__
|
||||
|
||||
#include "Arduino.h"
|
||||
#if defined(ESP32)
|
||||
#include "driver/spi_master.h"
|
||||
#include "esp_rom_gpio.h" // for esp_rom_gpio_connect_out_signal
|
||||
#include "Arduino.h"
|
||||
|
||||
#if defined(ESP32)
|
||||
#define CLK_PIN 18
|
||||
#define MOSI_PIN 23
|
||||
#define MISO_PIN -1
|
||||
#endif
|
||||
|
||||
#define SPI_CLK 1 * 1000 * 1000 // 1MHz
|
||||
|
||||
|
@ -134,5 +129,6 @@ class esp32_3wSpi {
|
|||
private:
|
||||
spi_device_handle_t spi_reg, spi_fifo;
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif /*__ESP32_3WSPI_H__*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue