adafruit / Adafruit_AHTX0

Arduino library for AHT10 and AHT20 sensors!
Other
63 stars 11 forks source link

Code hangs when calling the .begin() initialization method #9

Closed lukadd16 closed 2 years ago

lukadd16 commented 2 years ago

Environment

Context

I have a project that requires a temperature and humidity sensor, and after evaluating some of the alternatives I chose the DHT20 sensor (which uses the AHT20 under the hood) that Adafruit sells on their store. Due to space constraints the logical option was to go with the Nano Every microcontroller, one that I am aware uses a different processor than the Arduino UNO but I considered this to be a non-issue due to the software compatibility layer that Arduino includes which emulates the registers of an ATMEGA 328.

Summary of Issue

Loading up the example sketch (the one titled adafruit_aht_test) included with this library, it gets compiled and flashed to the Nano Every's memory without issue (see logs below). Upon opening the Serial Monitor (at 115200 baud to match the baud specified by the sketch), all I see is this message...

17:06:51.507 -> Adafruit AHT10/AHT20 demo!

...no readings from either sensor, no "AHT10 or AHT20 found" message and no "Could not find AHT? Check wiring" message either. This tells me that none of the code after the call to aht.begin() on line 9 is being reached, which leads me to believe that the core issue is not with the sketch code itself nor with my wiring (else I would be getting the "check wiring" message after initialization failed), but rather with this library. As a result, I am unable to resolve this issue myself as it is outside the scope of my knowledge and responsibility.

Arduino IDE Logs

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\lukad\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\lukad\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\lukad\Documents\Arduino\libraries -fqbn=arduino:megaavr:nona4809:mode=on -vid-pid=2341_0058 -ide-version=10816 -build-path C:\Users\lukad\AppData\Local\Temp\arduino_build_769867 -warnings=none -build-cache C:\Users\lukad\AppData\Local\Temp\arduino_cache_808864 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Users\lukad\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino5.path=C:\Users\lukad\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5 -prefs=runtime.tools.avrdude.path=C:\Users\lukad\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\lukad\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.arduinoOTA.path=C:\Users\lukad\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\lukad\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -verbose C:\Users\lukad\Documents\Arduino\libraries\Adafruit_AHTX0\examples\adafruit_aht_test\adafruit_aht_test.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\lukad\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\lukad\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\lukad\Documents\Arduino\libraries -fqbn=arduino:megaavr:nona4809:mode=on -vid-pid=2341_0058 -ide-version=10816 -build-path C:\Users\lukad\AppData\Local\Temp\arduino_build_769867 -warnings=none -build-cache C:\Users\lukad\AppData\Local\Temp\arduino_cache_808864 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Users\lukad\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino5.path=C:\Users\lukad\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5 -prefs=runtime.tools.avrdude.path=C:\Users\lukad\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\lukad\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.arduinoOTA.path=C:\Users\lukad\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\lukad\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -verbose C:\Users\lukad\Documents\Arduino\libraries\Adafruit_AHTX0\examples\adafruit_aht_test\adafruit_aht_test.ino
Using board 'nona4809' from platform in folder: C:\Users\lukad\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7
Using core 'arduino' from platform in folder: C:\Users\lukad\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7
Detecting libraries used...
"C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega4809 -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO_EVERY -DARDUINO_ARCH_MEGAAVR -DAVR_NANO_4809_328MODE -DMILLIS_USE_TIMERB3 -DNO_EXTERNAL_I2C_PULLUP "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino/api/deprecated" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\variants\\nona4809" "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867\\sketch\\adafruit_aht_test.ino.cpp" -o nul
Alternatives for Adafruit_AHTX0.h: [Adafruit_AHTX0@2.0.1]
ResolveLibrary(Adafruit_AHTX0.h)
  -> candidates: [Adafruit_AHTX0@2.0.1]
"C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega4809 -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO_EVERY -DARDUINO_ARCH_MEGAAVR -DAVR_NANO_4809_328MODE -DMILLIS_USE_TIMERB3 -DNO_EXTERNAL_I2C_PULLUP "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino/api/deprecated" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\variants\\nona4809" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_AHTX0" "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867\\sketch\\adafruit_aht_test.ino.cpp" -o nul
Alternatives for Adafruit_BusIO_Register.h: [Adafruit_BusIO@1.11.3]
ResolveLibrary(Adafruit_BusIO_Register.h)
  -> candidates: [Adafruit_BusIO@1.11.3]
"C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega4809 -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO_EVERY -DARDUINO_ARCH_MEGAAVR -DAVR_NANO_4809_328MODE -DMILLIS_USE_TIMERB3 -DNO_EXTERNAL_I2C_PULLUP "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino/api/deprecated" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\variants\\nona4809" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_AHTX0" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_BusIO" "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867\\sketch\\adafruit_aht_test.ino.cpp" -o nul
Alternatives for Wire.h: [Wire@1.0]
ResolveLibrary(Wire.h)
  -> candidates: [Wire@1.0]
"C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega4809 -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO_EVERY -DARDUINO_ARCH_MEGAAVR -DAVR_NANO_4809_328MODE -DMILLIS_USE_TIMERB3 -DNO_EXTERNAL_I2C_PULLUP "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino/api/deprecated" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\variants\\nona4809" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_AHTX0" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_BusIO" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\Wire\\src" "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867\\sketch\\adafruit_aht_test.ino.cpp" -o nul
Alternatives for SPI.h: [SPI@1.0]
ResolveLibrary(SPI.h)
  -> candidates: [SPI@1.0]
"C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega4809 -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO_EVERY -DARDUINO_ARCH_MEGAAVR -DAVR_NANO_4809_328MODE -DMILLIS_USE_TIMERB3 -DNO_EXTERNAL_I2C_PULLUP "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino/api/deprecated" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\variants\\nona4809" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_AHTX0" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_BusIO" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\Wire\\src" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\SPI\\src" "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867\\sketch\\adafruit_aht_test.ino.cpp" -o nul
Alternatives for Adafruit_Sensor.h: [Adafruit_Unified_Sensor@1.1.5]
ResolveLibrary(Adafruit_Sensor.h)
  -> candidates: [Adafruit_Unified_Sensor@1.1.5]
"C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega4809 -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO_EVERY -DARDUINO_ARCH_MEGAAVR -DAVR_NANO_4809_328MODE -DMILLIS_USE_TIMERB3 -DNO_EXTERNAL_I2C_PULLUP "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino/api/deprecated" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\variants\\nona4809" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_AHTX0" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_BusIO" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\Wire\\src" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\SPI\\src" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_Unified_Sensor" "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867\\sketch\\adafruit_aht_test.ino.cpp" -o nul
"C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega4809 -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO_EVERY -DARDUINO_ARCH_MEGAAVR -DAVR_NANO_4809_328MODE -DMILLIS_USE_TIMERB3 -DNO_EXTERNAL_I2C_PULLUP "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino/api/deprecated" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\variants\\nona4809" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_AHTX0" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_BusIO" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\Wire\\src" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\SPI\\src" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_Unified_Sensor" "C:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_AHTX0\\Adafruit_AHTX0.cpp" -o nul
"C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega4809 -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO_EVERY -DARDUINO_ARCH_MEGAAVR -DAVR_NANO_4809_328MODE -DMILLIS_USE_TIMERB3 -DNO_EXTERNAL_I2C_PULLUP "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino/api/deprecated" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\variants\\nona4809" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_AHTX0" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_BusIO" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\Wire\\src" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\SPI\\src" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_Unified_Sensor" "C:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_BusIO\\Adafruit_BusIO_Register.cpp" -o nul
"C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega4809 -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO_EVERY -DARDUINO_ARCH_MEGAAVR -DAVR_NANO_4809_328MODE -DMILLIS_USE_TIMERB3 -DNO_EXTERNAL_I2C_PULLUP "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino/api/deprecated" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\variants\\nona4809" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_AHTX0" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_BusIO" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\Wire\\src" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\SPI\\src" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_Unified_Sensor" "C:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_BusIO\\Adafruit_I2CDevice.cpp" -o nul
"C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega4809 -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO_EVERY -DARDUINO_ARCH_MEGAAVR -DAVR_NANO_4809_328MODE -DMILLIS_USE_TIMERB3 -DNO_EXTERNAL_I2C_PULLUP "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino/api/deprecated" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\variants\\nona4809" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_AHTX0" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_BusIO" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\Wire\\src" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\SPI\\src" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_Unified_Sensor" "C:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_BusIO\\Adafruit_SPIDevice.cpp" -o nul
"C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega4809 -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO_EVERY -DARDUINO_ARCH_MEGAAVR -DAVR_NANO_4809_328MODE -DMILLIS_USE_TIMERB3 -DNO_EXTERNAL_I2C_PULLUP "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino/api/deprecated" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\variants\\nona4809" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_AHTX0" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_BusIO" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\Wire\\src" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\SPI\\src" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_Unified_Sensor" "C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\Wire\\src\\Wire.cpp" -o nul
"C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega4809 -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO_EVERY -DARDUINO_ARCH_MEGAAVR -DAVR_NANO_4809_328MODE -DMILLIS_USE_TIMERB3 -DNO_EXTERNAL_I2C_PULLUP "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino/api/deprecated" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\variants\\nona4809" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_AHTX0" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_BusIO" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\Wire\\src" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\SPI\\src" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_Unified_Sensor" "C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\Wire\\src\\utility\\twi.c" -o nul
"C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega4809 -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO_EVERY -DARDUINO_ARCH_MEGAAVR -DAVR_NANO_4809_328MODE -DMILLIS_USE_TIMERB3 -DNO_EXTERNAL_I2C_PULLUP "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino/api/deprecated" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\variants\\nona4809" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_AHTX0" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_BusIO" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\Wire\\src" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\SPI\\src" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_Unified_Sensor" "C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\SPI\\src\\SPI.cpp" -o nul
"C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega4809 -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO_EVERY -DARDUINO_ARCH_MEGAAVR -DAVR_NANO_4809_328MODE -DMILLIS_USE_TIMERB3 -DNO_EXTERNAL_I2C_PULLUP "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino/api/deprecated" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\variants\\nona4809" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_AHTX0" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_BusIO" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\Wire\\src" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\SPI\\src" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_Unified_Sensor" "C:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_Unified_Sensor\\Adafruit_Sensor.cpp" -o nul
Generating function prototypes...
"C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega4809 -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO_EVERY -DARDUINO_ARCH_MEGAAVR -DAVR_NANO_4809_328MODE -DMILLIS_USE_TIMERB3 -DNO_EXTERNAL_I2C_PULLUP "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino/api/deprecated" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\variants\\nona4809" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_AHTX0" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_BusIO" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\Wire\\src" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\SPI\\src" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_Unified_Sensor" "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867\\sketch\\adafruit_aht_test.ino.cpp" -o "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Program Files (x86)\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega4809 -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO_EVERY -DARDUINO_ARCH_MEGAAVR -DAVR_NANO_4809_328MODE -DMILLIS_USE_TIMERB3 -DNO_EXTERNAL_I2C_PULLUP "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino/api/deprecated" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\variants\\nona4809" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_AHTX0" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_BusIO" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\Wire\\src" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\SPI\\src" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_Unified_Sensor" "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867\\sketch\\adafruit_aht_test.ino.cpp" -o "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867\\sketch\\adafruit_aht_test.ino.cpp.o"
Compiling libraries...
Compiling library "Adafruit_AHTX0"
"C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega4809 -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO_EVERY -DARDUINO_ARCH_MEGAAVR -DAVR_NANO_4809_328MODE -DMILLIS_USE_TIMERB3 -DNO_EXTERNAL_I2C_PULLUP "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino/api/deprecated" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\variants\\nona4809" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_AHTX0" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_BusIO" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\Wire\\src" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\SPI\\src" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_Unified_Sensor" "C:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_AHTX0\\Adafruit_AHTX0.cpp" -o "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867\\libraries\\Adafruit_AHTX0\\Adafruit_AHTX0.cpp.o"
Compiling library "Adafruit_BusIO"
"C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega4809 -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO_EVERY -DARDUINO_ARCH_MEGAAVR -DAVR_NANO_4809_328MODE -DMILLIS_USE_TIMERB3 -DNO_EXTERNAL_I2C_PULLUP "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino/api/deprecated" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\variants\\nona4809" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_AHTX0" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_BusIO" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\Wire\\src" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\SPI\\src" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_Unified_Sensor" "C:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_BusIO\\Adafruit_SPIDevice.cpp" -o "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867\\libraries\\Adafruit_BusIO\\Adafruit_SPIDevice.cpp.o"
"C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega4809 -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO_EVERY -DARDUINO_ARCH_MEGAAVR -DAVR_NANO_4809_328MODE -DMILLIS_USE_TIMERB3 -DNO_EXTERNAL_I2C_PULLUP "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino/api/deprecated" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\variants\\nona4809" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_AHTX0" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_BusIO" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\Wire\\src" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\SPI\\src" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_Unified_Sensor" "C:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_BusIO\\Adafruit_I2CDevice.cpp" -o "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867\\libraries\\Adafruit_BusIO\\Adafruit_I2CDevice.cpp.o"
"C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega4809 -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO_EVERY -DARDUINO_ARCH_MEGAAVR -DAVR_NANO_4809_328MODE -DMILLIS_USE_TIMERB3 -DNO_EXTERNAL_I2C_PULLUP "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino/api/deprecated" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\variants\\nona4809" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_AHTX0" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_BusIO" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\Wire\\src" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\SPI\\src" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_Unified_Sensor" "C:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_BusIO\\Adafruit_BusIO_Register.cpp" -o "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867\\libraries\\Adafruit_BusIO\\Adafruit_BusIO_Register.cpp.o"
In file included from C:\Users\lukad\Documents\Arduino\libraries\Adafruit_BusIO\Adafruit_I2CDevice.h:5:0,
                 from C:\Users\lukad\Documents\Arduino\libraries\Adafruit_BusIO\Adafruit_I2CDevice.cpp:1:
C:\Users\lukad\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\libraries\Wire\src/Wire.h: In member function 'bool Adafruit_I2CDevice::_read(uint8_t*, size_t, bool)':
C:\Users\lukad\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\libraries\Wire\src/Wire.h:64:12: note: candidate 1: size_t TwoWire::requestFrom(int, int, int)
     size_t requestFrom(int, int, int);
            ^~~~~~~~~~~
C:\Users\lukad\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\libraries\Wire\src/Wire.h:62:12: note: candidate 2: virtual size_t TwoWire::requestFrom(uint8_t, size_t, bool)
     size_t requestFrom(uint8_t, size_t, bool);
            ^~~~~~~~~~~
Compiling library "Wire"
"C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega4809 -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO_EVERY -DARDUINO_ARCH_MEGAAVR -DAVR_NANO_4809_328MODE -DMILLIS_USE_TIMERB3 -DNO_EXTERNAL_I2C_PULLUP "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino/api/deprecated" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\variants\\nona4809" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_AHTX0" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_BusIO" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\Wire\\src" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\SPI\\src" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_Unified_Sensor" "C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\Wire\\src\\Wire.cpp" -o "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867\\libraries\\Wire\\Wire.cpp.o"
"C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega4809 -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO_EVERY -DARDUINO_ARCH_MEGAAVR -DAVR_NANO_4809_328MODE -DMILLIS_USE_TIMERB3 -DNO_EXTERNAL_I2C_PULLUP "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino/api/deprecated" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\variants\\nona4809" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_AHTX0" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_BusIO" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\Wire\\src" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\SPI\\src" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_Unified_Sensor" "C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\Wire\\src\\utility\\twi.c" -o "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867\\libraries\\Wire\\utility\\twi.c.o"
Compiling library "SPI"
"C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega4809 -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO_EVERY -DARDUINO_ARCH_MEGAAVR -DAVR_NANO_4809_328MODE -DMILLIS_USE_TIMERB3 -DNO_EXTERNAL_I2C_PULLUP "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino/api/deprecated" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\variants\\nona4809" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_AHTX0" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_BusIO" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\Wire\\src" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\SPI\\src" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_Unified_Sensor" "C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\SPI\\src\\SPI.cpp" -o "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867\\libraries\\SPI\\SPI.cpp.o"
Compiling library "Adafruit_Unified_Sensor"
"C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega4809 -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO_EVERY -DARDUINO_ARCH_MEGAAVR -DAVR_NANO_4809_328MODE -DMILLIS_USE_TIMERB3 -DNO_EXTERNAL_I2C_PULLUP "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino/api/deprecated" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\variants\\nona4809" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_AHTX0" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_BusIO" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\Wire\\src" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\libraries\\SPI\\src" "-IC:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_Unified_Sensor" "C:\\Users\\lukad\\Documents\\Arduino\\libraries\\Adafruit_Unified_Sensor\\Adafruit_Sensor.cpp" -o "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867\\libraries\\Adafruit_Unified_Sensor\\Adafruit_Sensor.cpp.o"
Compiling core...
"C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega4809 -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO_EVERY -DARDUINO_ARCH_MEGAAVR -DAVR_NANO_4809_328MODE -DMILLIS_USE_TIMERB3 -DNO_EXTERNAL_I2C_PULLUP "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino/api/deprecated" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino" "-IC:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\variants\\nona4809" "C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.7\\variants\\nona4809\\variant.c" -o "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867\\core\\variant.c.o"
Using precompiled core: C:\Users\lukad\AppData\Local\Temp\arduino_cache_808864\core\core_arduino_megaavr_nona4809_mode_on_c4ca500162027451eaaa532ce1a99dc0.a
Linking everything together...
"C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -Wl,--section-start=.text=0x0 -mmcu=atmega4809 -o "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867/adafruit_aht_test.ino.elf" "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867\\sketch\\adafruit_aht_test.ino.cpp.o" "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867\\libraries\\Adafruit_AHTX0\\Adafruit_AHTX0.cpp.o" "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867\\libraries\\Adafruit_BusIO\\Adafruit_BusIO_Register.cpp.o" "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867\\libraries\\Adafruit_BusIO\\Adafruit_I2CDevice.cpp.o" "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867\\libraries\\Adafruit_BusIO\\Adafruit_SPIDevice.cpp.o" "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867\\libraries\\Wire\\Wire.cpp.o" "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867\\libraries\\Wire\\utility\\twi.c.o" "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867\\libraries\\SPI\\SPI.cpp.o" "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867\\libraries\\Adafruit_Unified_Sensor\\Adafruit_Sensor.cpp.o" "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867\\core\\variant.c.o" "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867/..\\arduino_cache_808864\\core\\core_arduino_megaavr_nona4809_mode_on_c4ca500162027451eaaa532ce1a99dc0.a" "-LC:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867" -lm
"C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-objcopy" -O binary -R .eeprom "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867/adafruit_aht_test.ino.elf" "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867/adafruit_aht_test.ino.bin"
"C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867/adafruit_aht_test.ino.elf" "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867/adafruit_aht_test.ino.eep"
"C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867/adafruit_aht_test.ino.elf" "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867/adafruit_aht_test.ino.hex"
Using library Adafruit_AHTX0 at version 2.0.1 in folder: C:\Users\lukad\Documents\Arduino\libraries\Adafruit_AHTX0 
Using library Adafruit_BusIO at version 1.11.3 in folder: C:\Users\lukad\Documents\Arduino\libraries\Adafruit_BusIO 
Using library Wire at version 1.0 in folder: C:\Users\lukad\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\libraries\Wire 
Using library SPI at version 1.0 in folder: C:\Users\lukad\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\libraries\SPI 
Using library Adafruit_Unified_Sensor at version 1.1.5 in folder: C:\Users\lukad\Documents\Arduino\libraries\Adafruit_Unified_Sensor 
"C:\\Users\\lukad\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-size" -A "C:\\Users\\lukad\\AppData\\Local\\Temp\\arduino_build_769867/adafruit_aht_test.ino.elf"
Sketch uses 10932 bytes (22%) of program storage space. Maximum is 49152 bytes.
Global variables use 520 bytes (8%) of dynamic memory, leaving 5624 bytes for local variables. Maximum is 6144 bytes.
Forcing reset using 1200bps open/close on port COM4
C:\Users\lukad\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude -CC:\Users\lukad\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf -v -patmega4809 -cjtag2updi -PCOM4 -b115200 -e -D -Uflash:w:C:\Users\lukad\AppData\Local\Temp\arduino_build_769867/adafruit_aht_test.ino.hex:i -Ufuse2:w:0x01:m -Ufuse5:w:0xC9:m -Ufuse8:w:0x00:m {upload.extra_files} 

avrdude: Version 6.3-20190619
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Users\lukad\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

         Using Port                    : COM4
         Using Programmer              : jtag2updi
         Overriding Baud Rate          : 115200
JTAG ICE mkII sign-on message:
Communications protocol version: 1
M_MCU:
  boot-loader FW version:        1
  firmware version:              1.07
  hardware version:              1
S_MCU:
  boot-loader FW version:        1
  firmware version:              6.07
  hardware version:              1
Serial number:                   00:00:00:00:00:00
Device ID:                       JTAGICE mkII
         AVR Part                      : ATmega4809
         Chip Erase delay              : 0 us
         PAGEL                         : P00
         BS2                           : P00
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 0
         StabDelay                     : 0
         CmdexeDelay                   : 0
         SyncLoops                     : 0
         ByteDelay                     : 0
         PollIndex                     : 0
         PollValue                     : 0x00
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
           prodsig        0     0     0    0 no         61   61      0     0     0 0x00 0x00
           fuses          0     0     0    0 no          9    0      0     0     0 0x00 0x00
           fuse0          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse1          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse2          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse4          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse5          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse6          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse7          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse8          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           lock           0     0     0    0 no          1    0      0     0     0 0x00 0x00
           data           0     0     0    0 no          0    0      0     0     0 0x00 0x00
           usersig        0     0     0    0 no         64   64      0     0     0 0x00 0x00
           flash          0     0     0    0 no      49152  128      0     0     0 0x00 0x00
           eeprom         0     0     0    0 no        256   64      0     0     0 0x00 0x00

         Programmer Type : JTAGMKII_PDI
         Description     : JTAGv2 to UPDI bridge
         M_MCU hardware version: 1
         M_MCU firmware version: 1.07
         S_MCU hardware version: 1
         S_MCU firmware version: 6.07
         Serial number:          00:00:00:00:00:00
         Vtarget         : 5.0 V

avrdude: jtagmkII_initialize(): Cannot locate "flash" and "boot" memories in description
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.27s

avrdude: Device signature = 0x1e9651 (probably m4809)
avrdude: erasing chip
avrdude: reading input file "C:\Users\lukad\AppData\Local\Temp\arduino_build_769867/adafruit_aht_test.ino.hex"
avrdude: writing flash (10932 bytes):

Writing | ################################################## | 100% 8.03s

avrdude: 10932 bytes of flash written
avrdude: verifying flash memory against C:\Users\lukad\AppData\Local\Temp\arduino_build_769867/adafruit_aht_test.ino.hex:
avrdude: load data flash data from input file C:\Users\lukad\AppData\Local\Temp\arduino_build_769867/adafruit_aht_test.ino.hex:
avrdude: input file C:\Users\lukad\AppData\Local\Temp\arduino_build_769867/adafruit_aht_test.ino.hex contains 10932 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 1.52s

avrdude: verifying ...
avrdude: 10932 bytes of flash verified
avrdude: reading input file "0x01"
avrdude: writing fuse2 (1 bytes):

Writing | ################################################## | 100% 0.01s

avrdude: 1 bytes of fuse2 written
avrdude: verifying fuse2 memory against 0x01:
avrdude: load data fuse2 data from input file 0x01:
avrdude: input file 0x01 contains 1 bytes
avrdude: reading on-chip fuse2 data:

Reading | ################################################## | 100% 0.00s

avrdude: verifying ...
avrdude: 1 bytes of fuse2 verified
avrdude: reading input file "0xC9"
avrdude: writing fuse5 (1 bytes):

Writing | ################################################## | 100% 0.01s

avrdude: 1 bytes of fuse5 written
avrdude: verifying fuse5 memory against 0xC9:
avrdude: load data fuse5 data from input file 0xC9:
avrdude: input file 0xC9 contains 1 bytes
avrdude: reading on-chip fuse5 data:

Reading | ################################################## | 100% 0.00s

avrdude: verifying ...
avrdude: 1 bytes of fuse5 verified
avrdude: reading input file "0x00"
avrdude: writing fuse8 (1 bytes):

Writing | ################################################## | 100% 0.01s

avrdude: 1 bytes of fuse8 written
avrdude: verifying fuse8 memory against 0x00:
avrdude: load data fuse8 data from input file 0x00:
avrdude: input file 0x00 contains 1 bytes
avrdude: reading on-chip fuse8 data:

Reading | ################################################## | 100% 0.00s

avrdude: verifying ...
avrdude: 1 bytes of fuse8 verified

avrdude done.  Thank you.

Steps to Reproduce

1) Wire the SDA and SCL pins on the DHT20 to the matching pins in the Nano Every (D18 and D19 respectively).

2) Connect the Arduino and DHT20 to 5V power

3) Install the latest version (2.0.1) of the AHTX0 library in the Arduino IDE Library Manager

4) Install the Arduino megaAVR Boards package in the Board Manager

4) Open the adafruit_aht_test example sketch

5) Select the Arduino Nano Every as our board

6) Enable registers emulation

6) Upload the example sketch to the Nano Every

7) Open the Serial Monitor at 115200 baud

Sketch Code

https://github.com/adafruit/Adafruit_AHTX0/blob/2d961490f21be7aa01bccd9a460e153f4fcb3207/examples/adafruit_aht_test/adafruit_aht_test.ino#L1-L23

Things I Have Tried

ladyada commented 2 years ago

hiya, questions about how to use adafruit products are best posted in the adafruit forums at forums.adafruit.com thats where tech support is handled - github issues are where folks can issue bug reports (e.g. something that ought to work but doesnt due to a hardware or software bug) since that isnt clearly the issue here and most people are using hte sensor fine, we don't think that's the issue.

thanks! :)

lukadd16 commented 2 years ago

github issues are where folks can issue bug reports (e.g. something that ought to work but doesnt due to a hardware or software bug)

I wouldn't have opened an issue here if I didn't believe this was the case. I thought the description of my issue was very clear in stating that what I'm doing should work but doesn't due to a factor that is out of my control. Nonetheless, I have started a thread on the forums as requested so we'll see where this goes.

lukadd16 commented 2 years ago

The forum thread led to me receiving a replacement unit that worked perfectly without issue, hence this GH issue is no longer relevant.