Problem with FasstGPIO

I am working on a sketch to control a string of apa102 RGB LEDs. As I want to update them as fast as possible I have the following two lines of code

   #include <FastGPIO.h>
   #define APA102_USE_FAST_GPIO

When compiled for an Arduino Uno it all works fine. The LEDs change as expected.

However, when I switch to a WiMos D1 board (on board WiFi) I get two problems.
Firstly the compiler complains

C:\Users\peter\Documents\Arduino\libraries\FastGPIO-2.0.0/FastGPIO.h:45:20: fatal error: avr/io.h: No such file or directory

There is only one instance of FastGPIO.h (which contains #include avr/io.h)

C:\Users\peter\Documents\Arduino\libraries\FastGPIO-2.0.0\FastGPIO.h

and I can find only one instance of io.h

C:\Program Files (x86)\Arduino\hardware\tools\avr\avr\include\avr\io.h

If the compiler can find io.h when compiling for a Uno, why not for a WiMos?

Secondly, commenting out the two lines allows the sketch to compile and upload, but noting happens. The LED strip is connected identically in both cases, Gnd & pins 11 & 12 for clock and data with a separate 5V supply.

Does anyone have any idea what I am doing wrong?

If the compiler can find io.h when compiling for a Uno, why not for a WiMos?

Because the WiMos platform is based on the ESP-8266 and not on the Atmel AVR platform as traditional Arduinos are. The library you're using depends very much on the specifics of the AVR platform so you cannot use it on the WiMos.

(deleted)

OK, thanks. That explains it.