FabioBatSilva / ArduinoFake

Arduino mocking made easy
https://platformio.org/lib/show/1689/ArduinoFake
MIT License
102 stars 47 forks source link

missing `map` header file #33

Open pvkarthikk opened 1 year ago

pvkarthikk commented 1 year ago

I created new UNO project in PlatformIO and added ArduinoFake library as deps. When I build it, its throwing error as below, image

r89m commented 1 year ago

This library is for testing your code on your laptop / desktop computer rather than on embedded hardware.

Looking at the logs it was trying to compile the code for use on an Arduino Uno - Processing * in uno environment

If you already have a native environment you can run pio test -e native

If you don't have a native environment, add the following to your platformio.ini file and try running the above command again.

[env:native]
platform=native
lib_deps=
    fabiobatsilva/ArduinoFake@^0.3.1