• Система автоматизации с открытым исходным кодом на базе esp8266/esp32 микроконтроллеров и приложения IoT Manager. Наша группа в Telegram

arduino uno sketch to nodeMCU v3

sem

New member
Добрый день господа. Прошу, не бросайте большими камнями.
у меня есть скетч хорошо работающий на ардуино нано/уно и т.д. Почему nodeMCU ругается на библиотеки? Есть ли какой-то универсальный конвертор скетчей?

In file included from C:\Users\Dell\Documents\Arduino\libraries\Encoder/Encoder.h:46:0,

from C:\Users\Dell\Desktop\Thai projects\wall clock\Clockcode\Code\Clock_with_rtc1307\Clock_with_rtc1307.ino:6:

C:\Users\Dell\Documents\Arduino\libraries\Encoder/utility/interrupt_pins.h:150:2: error: #error "Interrupts are unknown for this board, please add to this code"

#error "Interrupts are unknown for this board, please add to this code"

^

C:\Users\Dell\Documents\Arduino\libraries\Encoder/utility/interrupt_pins.h:153:2: error: #error "Encoder requires interrupt pins, but this board does not have any :("

#error "Encoder requires interrupt pins, but this board does not have any :("

^

C:\Users\Dell\Documents\Arduino\libraries\Encoder/utility/interrupt_pins.h:154:2: error: #error "You could try defining ENCODER_DO_NOT_USE_INTERRUPTS as a kludge."

#error "You could try defining ENCODER_DO_NOT_USE_INTERRUPTS as a kludge."

^

Multiple libraries were found for "FastLED.h"
Used: C:\Users\Dell\Documents\Arduino\libraries\FastLED-master
Not used: C:\Users\Dell\Documents\Arduino\libraries\FastLED-3.0.3
Multiple libraries were found for "RTClib.h"
Used: C:\Users\Dell\Documents\Arduino\libraries\RTClib
Not used: D:\Arduino\libraries\RTClib
Multiple libraries were found for "Bounce.h"
Used: C:\Users\Dell\Documents\Arduino\libraries\Bounce
Not used: D:\Arduino\libraries\Bounce
Multiple libraries were found for "Encoder.h"
Used: C:\Users\Dell\Documents\Arduino\libraries\Encoder
Not used: D:\Arduino\libraries\Encoder
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).

C:\Users\Dell\Desktop\Thai projects\Classroom-Clock-master\Code\customizations\classroomClock\classroomClock.ino:5:23: fatal error: avr/power.h: No such file or directory

#include <avr/power.h>

^

compilation terminated.

Multiple libraries were found for "RTClib.h"
Used: C:\Users\Dell\Documents\Arduino\libraries\RTClib
Not used: D:\Arduino\libraries\RTClib
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).
sketch\SetTime.ino.cpp.o:(.text._Z7getTimePKc+0x8): undefined reference to `sscanf'

sketch\SetTime.ino.cpp.o: In function `getTime(char const*)':

C:\Users\Dell\Documents\Arduino\DS1307RTC\examples\SetTime/SetTime.ino:52: undefined reference to `sscanf'

sketch\SetTime.ino.cpp.o: In function `getDate(char const*)':

C:\Users\Dell\Documents\Arduino\DS1307RTC\examples\SetTime/SetTime.ino:65: undefined reference to `sscanf'

collect2.exe: error: ld returned 1 exit status

Multiple libraries were found for "DS1307RTC.h"
Used: C:\Users\Dell\Documents\Arduino\libraries\DS1307RTC
Not used: D:\Arduino\libraries\DS1307RTC
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).
 

Вложения

Последнее редактирование:

Сергей_Ф

Moderator
Команда форума
@sem у вас как с английским? Там же всё написано черным по белому. Нет библиотеки, не определены прерывания для данной платы. Несколько библиотек у вас и т.д.
 
Сверху Снизу