Mbed.h: No such file or directory

I’m trying to compile this:
WiFi Signal strength indicator using ESP8266 - Electronics-Lab.com
https://raw.githubusercontent.com/wifijt/SSID_RSSI_BSS_OLED/master/SSID_RSSI_BSS_OLED.ino

for an AdaFruit ESP8266 Huzzah Feather board, but ‘pio run’ fails with:

.pioenvs/huzzah/Adafruit_GFX_ID188/Adafruit_SSD1306.h:26:18: fatal error: mbed.h: No such file or directory

platformio.ini:

[env:huzzah]
platform = espressif
framework = arduino
board = huzzah

but changing to ‘framework = mbed’ fails with

Error: This board doesn't support mbed framework!

Halp?

Hi @DrGary
Looks like you installed the wrong library.
Please use Adafruit GFX with ID 13.

Yes and leave framework = arduino once you’ve set the lib as @valeros indicates

Success! Removing the wrong library (188) allowed a successful compile. I had already installed the correct library (13) for a another project. What happened here is that I did a ‘pio lib search Adafruit_GFX’, saw 188, and installed it. The prior library is found with ‘pio lib search Adafruit-GFX’.

So as UI suggestions:
• It would be good if near-match text strings were also returned for searches and shown together.
• It would be good if the search results noted when you already have the library installed.

BTW, I have to say that the fact that this is the only trouble I’ve had shows how awesome PlatformIO is!

Thanks, @valeros and @malachib.

1 Like

Glad it’s working for ya!