Код:
#include <TinyWireM.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup() {
TinyWireM.begin();
lcd.init();
lcd.backlight();
lcd.home();
lcd.print("Hi!");
}
void loop() {
}
Ошибка:
Arduino: 1.8.19 (Windows 10), Плата:"ATtiny26, Internal 16MHz (PLL), Retain, 2.7V, Enable, Enable, Enable"
C:\Users\user.DESKTOP-A29085V\Documents\arduino-1.8.19\arduino-builder -dump-prefs -logger=machine -hardware C:\Users\user.DESKTOP-A29085V\Documents\arduino-1.8.19\hardware -hardware C:\Users\user.DESKTOP-A29085V\AppData\Local\Arduino15\packages -tools C:\Users\user.DESKTOP-A29085V\Documents\arduino-1.8.19\tools-builder -tools C:\Users\user.DESKTOP-A29085V\Documents\arduino-1.8.19\hardware\tools\avr -tools C:\Users\user.DESKTOP-A29085V\AppData\Local\Arduino15\packages -built-in-libraries C:\Users\user.DESKTOP-A29085V\Documents\arduino-1.8.19\libraries -libraries C:\Users\user.DESKTOP-A29085V\Documents\Arduino\libraries -fqbn=ATtiny26:avr:t26:clk=16M,ee=save,bod=2V7,millis=millis_en,pwm=pwm_en,adc=adc_en -ide-version=10819 -build-path C:\Users\USER~1.DES\AppData\Local\Temp\arduino_build_114967 -warnings=none -build-cache C:\Users\USER~1.DES\AppData\Local\Temp\arduino_cache_118308 -prefs=build.warn_data_percentage=75 -verbose C:\Users\USER~1.DES\AppData\Local\Temp\arduino_modified_sketch_295434\sketch_jun25a.ino
C:\Users\user.DESKTOP-A29085V\Documents\arduino-1.8.19\arduino-builder -compile -logger=machine -hardware C:\Users\user.DESKTOP-A29085V\Documents\arduino-1.8.19\hardware -hardware C:\Users\user.DESKTOP-A29085V\AppData\Local\Arduino15\packages -tools C:\Users\user.DESKTOP-A29085V\Documents\arduino-1.8.19\tools-builder -tools C:\Users\user.DESKTOP-A29085V\Documents\arduino-1.8.19\hardware\tools\avr -tools C:\Users\user.DESKTOP-A29085V\AppData\Local\Arduino15\packages -built-in-libraries C:\Users\user.DESKTOP-A29085V\Documents\arduino-1.8.19\libraries -libraries C:\Users\user.DESKTOP-A29085V\Documents\Arduino\libraries -fqbn=ATtiny26:avr:t26:clk=16M,ee=save,bod=2V7,millis=millis_en,pwm=pwm_en,adc=adc_en -ide-version=10819 -build-path C:\Users\USER~1.DES\AppData\Local\Temp\arduino_build_114967 -warnings=none -build-cache C:\Users\USER~1.DES\AppData\Local\Temp\arduino_cache_118308 -prefs=build.warn_data_percentage=75 -verbose C:\Users\USER~1.DES\AppData\Local\Temp\arduino_modified_sketch_295434\sketch_jun25a.ino
Using board 't26' from platform in folder: C:\Users\user.DESKTOP-A29085V\AppData\Local\Arduino15\packages\ATtiny26\hardware\avr\1.2.0
Using core 'tiny' from platform in folder: C:\Users\user.DESKTOP-A29085V\AppData\Local\Arduino15\packages\ATtiny26\hardware\avr\1.2.0
Detecting libraries used...
"C:\\Users\\user.DESKTOP-A29085V\\Documents\\arduino-1.8.19\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=attiny26 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_attiny -DARDUINO_ARCH_AVR -Wextra -flto -g -D_T26CORE_MILLIS -D_T26CORE_PWM -D_T26CORE_ADC "-IC:\\Users\\user.DESKTOP-A29085V\\AppData\\Local\\Arduino15\\packages\\ATtiny26\\hardware\\avr\\1.2.0\\cores\\tiny" "-IC:\\Users\\user.DESKTOP-A29085V\\AppData\\Local\\Arduino15\\packages\\ATtiny26\\hardware\\avr\\1.2.0\\variants\\attiny26" "C:\\Users\\USER~1.DES\\AppData\\Local\\Temp\\arduino_build_114967\\sketch\\sketch_jun25a.ino.cpp" -o nul
Alternatives for TinyWireM.h: [TinyWireM@1.1.1]
ResolveLibrary(TinyWireM.h)
-> candidates: [TinyWireM@1.1.1]
"C:\\Users\\user.DESKTOP-A29085V\\Documents\\arduino-1.8.19\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=attiny26 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_attiny -DARDUINO_ARCH_AVR -Wextra -flto -g -D_T26CORE_MILLIS -D_T26CORE_PWM -D_T26CORE_ADC "-IC:\\Users\\user.DESKTOP-A29085V\\AppData\\Local\\Arduino15\\packages\\ATtiny26\\hardware\\avr\\1.2.0\\cores\\tiny" "-IC:\\Users\\user.DESKTOP-A29085V\\AppData\\Local\\Arduino15\\packages\\ATtiny26\\hardware\\avr\\1.2.0\\variants\\attiny26" "-IC:\\Users\\user.DESKTOP-A29085V\\Documents\\Arduino\\libraries\\TinyWireM" "C:\\Users\\USER~1.DES\\AppData\\Local\\Temp\\arduino_build_114967\\sketch\\sketch_jun25a.ino.cpp" -o nul
Alternatives for LiquidCrystal_I2C.h: [LiquidCrystal_I2C_V112@1.1.2]
ResolveLibrary(LiquidCrystal_I2C.h)
-> candidates: [LiquidCrystal_I2C_V112@1.1.2]
"C:\\Users\\user.DESKTOP-A29085V\\Documents\\arduino-1.8.19\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=attiny26 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_attiny -DARDUINO_ARCH_AVR -Wextra -flto -g -D_T26CORE_MILLIS -D_T26CORE_PWM -D_T26CORE_ADC "-IC:\\Users\\user.DESKTOP-A29085V\\AppData\\Local\\Arduino15\\packages\\ATtiny26\\hardware\\avr\\1.2.0\\cores\\tiny" "-IC:\\Users\\user.DESKTOP-A29085V\\AppData\\Local\\Arduino15\\packages\\ATtiny26\\hardware\\avr\\1.2.0\\variants\\attiny26" "-IC:\\Users\\user.DESKTOP-A29085V\\Documents\\Arduino\\libraries\\TinyWireM" "-IC:\\Users\\user.DESKTOP-A29085V\\Documents\\Arduino\\libraries\\LiquidCrystal_I2C_V112" "C:\\Users\\USER~1.DES\\AppData\\Local\\Temp\\arduino_build_114967\\sketch\\sketch_jun25a.ino.cpp" -o nul
Alternatives for Print.h: []
ResolveLibrary(Print.h)
-> candidates: []In file included from C:\Users\USER~1.DES\AppData\Local\Temp\arduino_modified_sketch_295434\sketch_jun25a.ino:2:0:
C:\Users\user.DESKTOP-A29085V\Documents\Arduino\libraries\LiquidCrystal_I2C_V112/LiquidCrystal_I2C.h:6:10: fatal error: Print.h: No such file or directory
#include "Print.h"
^~~~~~~~~
compilation terminated.
Используем библиотеку TinyWireM версии 1.1.1 из папки: C:\Users\user.DESKTOP-A29085V\Documents\Arduino\libraries\TinyWireM
Используем библиотеку LiquidCrystal_I2C_V112 версии 1.1.2 из папки: C:\Users\user.DESKTOP-A29085V\Documents\Arduino\libraries\LiquidCrystal_I2C_V112
exit status 1
Ошибка компиляции для платы ATtiny26.
Что делать с этим Print.h?