is the SPI lib supposed to work within Arduino IDE? I am not able to get it going.
When I clone from the git repo and add the directory as a lib in the arduino IDE I get a following error:
/Documents/Arduino/libraries/ESP8266_SPI_Driver/spi.c:26:24: fatal error: driver/spi.h: No such file or directory
#include "driver/spi.h"
^
compilation terminated.
Error compiling.
I tried flattening the dirs into a single directory and adding that as the lib to the Arduino IDE, the imports then work but I run into a different issue:
In file included from /Users/temp1/Documents/Arduino/libraries/esp8266_jsnkdjnsfkndfnsk/spi.h:29:0,
from sketch_esp_wifi_test_adafruit.ino:1:
/Users/temp1/Downloads/esp8266/Arduino.app/Contents/Java/hardware/tools/esp8266/sdk//include/ets_sys.h:94:20: error: 'size_t' was not declared in this scope
void *pvPortMalloc(size_t xWantedSize);
^
/Users/temp1/Downloads/esp8266/Arduino.app/Contents/Java/hardware/tools/esp8266/sdk//include/ets_sys.h:95:32: error: 'size_t' has not been declared
void *pvPortRealloc(void* ptr, size_t xWantedSize);
^
/Users/temp1/Downloads/esp8266/Arduino.app/Contents/Java/hardware/tools/esp8266/sdk//include/ets_sys.h:97:19: error: 'size_t' was not declared in this scope
void *vPortMalloc(size_t xWantedSize);
^
/Users/temp1/Downloads/esp8266/Arduino.app/Contents/Java/hardware/tools/esp8266/sdk//include/ets_sys.h:99:47: error: 'size_t' has not been declared
void *ets_memcpy(void *dest, const void *src, size_t n);
^
/Users/temp1/Downloads/esp8266/Arduino.app/Contents/Java/hardware/tools/esp8266/sdk//include/ets_sys.h:100:34: error: 'size_t' has not been declared
void *ets_memset(void *s, int c, size_t n);
^
/Users/temp1/Downloads/esp8266/Arduino.app/Contents/Java/hardware/tools/esp8266/sdk//include/ets_sys.h:109:48: error: 'size_t' has not been declared
char *ets_strncpy(char *dest, const char *src, size_t n);
^
/Users/temp1/Downloads/esp8266/Arduino.app/Contents/Java/hardware/tools/esp8266/sdk//include/ets_sys.h:112:28: error: 'size_t' has not been declared
int os_snprintf(char *str, size_t size, const char *format, ...) __attribute__ ((format (printf, 3, 4)));
^
/Users/temp1/Downloads/esp8266/Arduino.app/Contents/Java/hardware/tools/esp8266/sdk//include/ets_sys.h:104:5: error: previous declaration of 'int atoi(const ch>
int atoi(const char *nptr);
^
In file included from /Users/temp1/Downloads/esp8266/Arduino.app/Contents/Java/hardware/tools/esp8266/xtensa-lx106-elf/xtensa-lx106-elf/include/stdint.h:12:0,
from /Users/temp1/Downloads/esp8266/Arduino.app/Contents/Java/hardware/tools/esp8266/xtensa-lx106-elf/lib/gcc/xtensa-lx106-elf/4.8.2/include/s>
from /Users/temp1/Downloads/esp8266/Arduino.app/Contents/Java/hardware/tools/esp8266/sdk//include/c_types.h:8,
from /Users/temp1/Downloads/esp8266/Arduino.app/Contents/Java/hardware/tools/esp8266/sdk//include/ets_sys.h:11,
from /Users/temp1/Documents/Arduino/libraries/esp8266_jsnkdjnsfkndfnsk/spi.h:29,
from sketch_esp_wifi_test_adafruit.ino:1:
/Users/temp1/Downloads/esp8266/Arduino.app/Contents/Java/hardware/tools/esp8266/xtensa-lx106-elf/xtensa-lx106-elf/include/stdlib.h:70:5: error: conflicts with >
int _EXFUN(atoi,(const char *__nptr));
^
In file included from /Users/temp1/Documents/Arduino/libraries/esp8266_jsnkdjnsfkndfnsk/spi.h:29:0,
from sketch_esp_wifi_test_adafruit.ino:1:
/Users/temp1/Downloads/esp8266/Arduino.app/Contents/Java/hardware/tools/esp8266/sdk//include/ets_sys.h:119:6: error: previous declaration of 'void ets_intr_loc>
void ets_intr_lock();
^
In file included from /Users/temp1/Downloads/esp8266/Arduino.app/Contents/Java/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src/WiFiClient.h:24:0,
from /Users/temp1/Downloads/esp8266/Arduino.app/Contents/Java/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:32,
from sketch_esp_wifi_test_adafruit.ino:8:
/Users/temp1/Downloads/esp8266/Arduino.app/Contents/Java/hardware/esp8266com/esp8266/cores/esp8266/Arduino.h:80:20: error: conflicts with new declaration with >
void ets_intr_lock();
^
In file included from /Users/temp1/Documents/Arduino/libraries/esp8266_jsnkdjnsfkndfnsk/spi.h:29:0,
from sketch_esp_wifi_test_adafruit.ino:1:
/Users/temp1/Downloads/esp8266/Arduino.app/Contents/Java/hardware/tools/esp8266/sdk//include/ets_sys.h:120:6: error: previous declaration of 'void ets_intr_unl>
void ets_intr_unlock();
^
In file included from /Users/temp1/Downloads/esp8266/Arduino.app/Contents/Java/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src/WiFiClient.h:24:0,
from /Users/temp1/Downloads/esp8266/Arduino.app/Contents/Java/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:32,
from sketch_esp_wifi_test_adafruit.ino:8:
/Users/temp1/Downloads/esp8266/Arduino.app/Contents/Java/hardware/esp8266com/esp8266/cores/esp8266/Arduino.h:81:22: error: conflicts with new declaration with >
void ets_intr_unlock();
^
Error compiling.