Here are my 2 problems:
#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (C:\Users\derek\Documents\PlatformIO\Projects\ArduinoUno R3 Detect I2C Address\src\main.cpp).
cannot open source file “avr/pgmspace.h” (dependency of “Arduino.h”)
Here is the output from Platformio: Build
* Executing task in folder ArduinoUno R3 Detect I2C Address: C:\Users\derek\.platformio\penv\Scripts\platformio.exe run
Processing uno (platform: atmelavr; board: uno; framework: arduino)
-------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/uno.html
PLATFORM: Atmel AVR (5.0.0) > Arduino Uno
HARDWARE: ATMEGA328P 16MHz, 2KB RAM, 31.50KB Flash
DEBUG: Current (avr-stub) External (avr-stub, simavr)
PACKAGES:
- framework-arduino-avr @ 5.2.0
- toolchain-atmelavr @ 1.70300.191015 (7.3.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 6 compatible libraries
Scanning dependencies...
Dependency Graph
|-- i2cdetect @ 1.0.0
|-- Wire @ 1.0
Building in release mode
Archiving .pio\build\uno\lib1af\libWire.a
Archiving .pio\build\uno\liba74\libi2cdetect.a
Archiving .pio\build\uno\libFrameworkArduinoVariant.a
Archiving .pio\build\uno\libFrameworkArduino.a
Indexing .pio\build\uno\libFrameworkArduinoVariant.a
Indexing .pio\build\uno\liba74\libi2cdetect.a
Indexing .pio\build\uno\lib1af\libWire.a
Indexing .pio\build\uno\libFrameworkArduino.a
Linking .pio\build\uno\firmware.elf
Checking size .pio\build\uno\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [== ] 23.7% (used 486 bytes from 2048 bytes)
Flash: [== ] 16.5% (used 5326 bytes from 32256 bytes)
==================================================== [SUCCESS] Took 2.34 seconds ====================================================
* Terminal will be reused by tasks, press any key to close it.
* Executing task in folder ArduinoUno R3 Detect I2C Address: C:\Users\derek\.platformio\penv\Scripts\platformio.exe run
Processing uno (platform: atmelavr; board: uno; framework: arduino)
-------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/uno.html
PLATFORM: Atmel AVR (5.0.0) > Arduino Uno
HARDWARE: ATMEGA328P 16MHz, 2KB RAM, 31.50KB Flash
DEBUG: Current (avr-stub) External (avr-stub, simavr)
PACKAGES:
- framework-arduino-avr @ 5.2.0
- toolchain-atmelavr @ 1.70300.191015 (7.3.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 6 compatible libraries
Scanning dependencies...
Dependency Graph
|-- i2cdetect @ 1.0.0
|-- Wire @ 1.0
Building in release mode
Checking size .pio\build\uno\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [== ] 23.7% (used 486 bytes from 2048 bytes)
Flash: [== ] 16.5% (used 5326 bytes from 32256 bytes)
==================================================== [SUCCESS] Took 0.80 seconds ====================================================
* Terminal will be reused by tasks, press any key to close it.
What have I broken that generates the Problems??
I uninstalled Platformio and deleted the ,platformio folder and did a clean build. everything looks OK but I get the issue of the 2 above Problems???
Please advise/ help…much appreciated as always