Browse Source

fix ESP8266 compile

pull/935/head
lumapu 2 years ago
parent
commit
c7e01c849d
  1. 10
      src/hms/esp32_3wSpi.h

10
src/hms/esp32_3wSpi.h

@ -6,15 +6,10 @@
#ifndef __ESP32_3WSPI_H__
#define __ESP32_3WSPI_H__
#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
#include "driver/spi_master.h"
#include "esp_rom_gpio.h" // for esp_rom_gpio_connect_out_signal
#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…
Cancel
Save