INFO: Dieses Forum nutzt Cookies...
Cookies sind für den Betrieb des Forums unverzichtbar. Mit der Nutzung des Forums erklärst Du dich damit einverstanden, dass wir Cookies verwenden.

Es wird in jedem Fall ein Cookie gesetzt um diesen Hinweis nicht mehr zu erhalten. Desweiteren setzen wir Google Adsense und Google Analytics ein.

Antwort schreiben 
 
Themabewertung:
  • 0 Bewertungen - 0 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
Programm läuft auf UNO aber nicht auf ATTINY85
11.12.2019, 12:02 (Dieser Beitrag wurde zuletzt bearbeitet: 11.12.2019 12:10 von Diwo13.)
Beitrag #33
RE: Programm läuft auf UNO aber nicht auf ATTINY85
(11.12.2019 11:46)hotsystems schrieb:  Ein Tipp:
Du solltest immer den Link der verwendeten Library im Sketch eintragen.
Dann sieht man, was verwendet wird.

Ich werde versuchen den Tipp zu befolgen. Leider verliere ich manchmal den Überblick Confused

In meiner Arduino IDE ist folgende Biblithek eingebunden:

IRremote by shirriff v2.2.3

Ich könnte mal eine andere Version davon versuchen. Es gibt noch die Versionen 2.0.1 und 1.0.0

Ich habe mal schnell probiert: Version 2.0.1 bringt das gleiche Ergenis,
Version 1.0.0 bringt eine Fehlermeldung beim Kompilieren:
Code:
Arduino: 1.8.9 (Linux), Board: "ATtiny25/45/85, ATtiny85, Internal 8 MHz"

/opt/arduino-1.8.9/arduino-builder -dump-prefs -logger=machine -hardware /opt/arduino-1.8.9/hardware -hardware /home/XXXXXX/.arduino15/packages -tools /opt/arduino-1.8.9/tools-builder -tools /opt/arduino-1.8.9/hardware/tools/avr -tools /home/XXXXXX/.arduino15/packages -built-in-libraries /opt/arduino-1.8.9/libraries -libraries /home/XXXXXX/Arduino/libraries -fqbn=attiny:avr:ATtinyX5:cpu=attiny85,clock=internal8 -vid-pid=0X2A03_0X0043 -ide-version=10809 -build-path /tmp/arduino_build_720636 -warnings=default -build-cache /tmp/arduino_cache_935396 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=/home/XXXXXX/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=/home/XXXXXX/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.avr-gcc.path=/home/XXXXXX/.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=/home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5 -prefs=runtime.tools.avrdude.path=/home/XXXXXX/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/home/XXXXXX/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -verbose /home/XXXXXX/Arduino/IR-LED-Weihn-V2/IR-LED-Weihn-V2.ino
/opt/arduino-1.8.9/arduino-builder -compile -logger=machine -hardware /opt/arduino-1.8.9/hardware -hardware /home/XXXXXX/.arduino15/packages -tools /opt/arduino-1.8.9/tools-builder -tools /opt/arduino-1.8.9/hardware/tools/avr -tools /home/XXXXXX/.arduino15/packages -built-in-libraries /opt/arduino-1.8.9/libraries -libraries /home/XXXXXX/Arduino/libraries -fqbn=attiny:avr:ATtinyX5:cpu=attiny85,clock=internal8 -vid-pid=0X2A03_0X0043 -ide-version=10809 -build-path /tmp/arduino_build_720636 -warnings=default -build-cache /tmp/arduino_cache_935396 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=/home/XXXXXX/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=/home/XXXXXX/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.avr-gcc.path=/home/XXXXXX/.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=/home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5 -prefs=runtime.tools.avrdude.path=/home/XXXXXX/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/home/XXXXXX/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -verbose /home/XXXXXX/Arduino/IR-LED-Weihn-V2/IR-LED-Weihn-V2.ino
Using board 'ATtinyX5' from platform in folder: /home/XXXXXX/.arduino15/packages/attiny/hardware/avr/1.0.2
Using core 'arduino' from platform in folder: /home/XXXXXX/.arduino15/packages/arduino/hardware/avr/1.8.1
Detecting libraries used...
/home/XXXXXX/.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=attiny85 -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_attiny -DARDUINO_ARCH_AVR -I/home/XXXXXX/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/XXXXXX/.arduino15/packages/attiny/hardware/avr/1.0.2/variants/tiny8 /tmp/arduino_build_720636/sketch/IR-LED-Weihn-V2.ino.cpp -o /dev/null
/home/XXXXXX/.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=attiny85 -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_attiny -DARDUINO_ARCH_AVR -I/home/XXXXXX/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/XXXXXX/.arduino15/packages/attiny/hardware/avr/1.0.2/variants/tiny8 -I/home/XXXXXX/Arduino/libraries/IRremote /tmp/arduino_build_720636/sketch/IR-LED-Weihn-V2.ino.cpp -o /dev/null
Using cached library dependencies for file: /home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp
Using cached library dependencies for file: /home/XXXXXX/Arduino/libraries/IRremote/irISR.cpp
Using cached library dependencies for file: /home/XXXXXX/Arduino/libraries/IRremote/irPronto.cpp
/home/XXXXXX/.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=attiny85 -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_attiny -DARDUINO_ARCH_AVR -I/home/XXXXXX/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/XXXXXX/.arduino15/packages/attiny/hardware/avr/1.0.2/variants/tiny8 -I/home/XXXXXX/Arduino/libraries/IRremote /home/XXXXXX/Arduino/libraries/IRremote/irRecv.cpp -o /dev/null
/home/XXXXXX/.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=attiny85 -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_attiny -DARDUINO_ARCH_AVR -I/home/XXXXXX/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/XXXXXX/.arduino15/packages/attiny/hardware/avr/1.0.2/variants/tiny8 -I/home/XXXXXX/Arduino/libraries/IRremote /home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp -o /dev/null
Using cached library dependencies for file: /home/XXXXXX/Arduino/libraries/IRremote/ir_Aiwa.cpp
Using cached library dependencies for file: /home/XXXXXX/Arduino/libraries/IRremote/ir_Denon.cpp
Using cached library dependencies for file: /home/XXXXXX/Arduino/libraries/IRremote/ir_Dish.cpp
Using cached library dependencies for file: /home/XXXXXX/Arduino/libraries/IRremote/ir_JVC.cpp
Using cached library dependencies for file: /home/XXXXXX/Arduino/libraries/IRremote/ir_LG.cpp
Using cached library dependencies for file: /home/XXXXXX/Arduino/libraries/IRremote/ir_Mitsubishi.cpp
Using cached library dependencies for file: /home/XXXXXX/Arduino/libraries/IRremote/ir_NEC.cpp
Using cached library dependencies for file: /home/XXXXXX/Arduino/libraries/IRremote/ir_Panasonic.cpp
Using cached library dependencies for file: /home/XXXXXX/Arduino/libraries/IRremote/ir_RC5_RC6.cpp
Using cached library dependencies for file: /home/XXXXXX/Arduino/libraries/IRremote/ir_Samsung.cpp
Using cached library dependencies for file: /home/XXXXXX/Arduino/libraries/IRremote/ir_Sanyo.cpp
Using cached library dependencies for file: /home/XXXXXX/Arduino/libraries/IRremote/ir_Sharp.cpp
Using cached library dependencies for file: /home/XXXXXX/Arduino/libraries/IRremote/ir_Sony.cpp
Using cached library dependencies for file: /home/XXXXXX/Arduino/libraries/IRremote/ir_Template.cpp
Using cached library dependencies for file: /home/XXXXXX/Arduino/libraries/IRremote/ir_Whynter.cpp
Generating function prototypes...
/home/XXXXXX/.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=attiny85 -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_attiny -DARDUINO_ARCH_AVR -I/home/XXXXXX/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/XXXXXX/.arduino15/packages/attiny/hardware/avr/1.0.2/variants/tiny8 -I/home/XXXXXX/Arduino/libraries/IRremote /tmp/arduino_build_720636/sketch/IR-LED-Weihn-V2.ino.cpp -o /tmp/arduino_build_720636/preproc/ctags_target_for_gcc_minus_e.cpp
/opt/arduino-1.8.9/tools-builder/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /tmp/arduino_build_720636/preproc/ctags_target_for_gcc_minus_e.cpp
Sketch wird kompiliert...
/home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++ -c -g -Os -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_attiny -DARDUINO_ARCH_AVR -I/home/XXXXXX/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/XXXXXX/.arduino15/packages/attiny/hardware/avr/1.0.2/variants/tiny8 -I/home/XXXXXX/Arduino/libraries/IRremote /tmp/arduino_build_720636/sketch/IR-LED-Weihn-V2.ino.cpp -o /tmp/arduino_build_720636/sketch/IR-LED-Weihn-V2.ino.cpp.o
/home/XXXXXX/Arduino/IR-LED-Weihn-V2/IR-LED-Weihn-V2.ino:7:31: warning: extra tokens at end of #include directive
#include <IRremote.h>         /IRremote by shirriff v2.2.3
                               ^
Compiling libraries...
Compiling library "IRremote"
Zuvor kompilierte Datei wird verwendet: /tmp/arduino_build_720636/libraries/IRremote/ir_JVC.cpp.o
Zuvor kompilierte Datei wird verwendet: /tmp/arduino_build_720636/libraries/IRremote/irPronto.cpp.o
Zuvor kompilierte Datei wird verwendet: /tmp/arduino_build_720636/libraries/IRremote/ir_Mitsubishi.cpp.o
Zuvor kompilierte Datei wird verwendet: /tmp/arduino_build_720636/libraries/IRremote/IRremote.cpp.o
/home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++ -c -g -Os -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_attiny -DARDUINO_ARCH_AVR -I/home/XXXXXX/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/XXXXXX/.arduino15/packages/attiny/hardware/avr/1.0.2/variants/tiny8 -I/home/XXXXXX/Arduino/libraries/IRremote /home/XXXXXX/Arduino/libraries/IRremote/irRecv.cpp -o /tmp/arduino_build_720636/libraries/IRremote/irRecv.cpp.o
Zuvor kompilierte Datei wird verwendet: /tmp/arduino_build_720636/libraries/IRremote/ir_Sony.cpp.o
Zuvor kompilierte Datei wird verwendet: /tmp/arduino_build_720636/libraries/IRremote/ir_Sharp.cpp.o
Zuvor kompilierte Datei wird verwendet: /tmp/arduino_build_720636/libraries/IRremote/ir_Panasonic.cpp.o
Zuvor kompilierte Datei wird verwendet: /tmp/arduino_build_720636/libraries/IRremote/ir_NEC.cpp.o
Zuvor kompilierte Datei wird verwendet: /tmp/arduino_build_720636/libraries/IRremote/ir_RC5_RC6.cpp.o
Zuvor kompilierte Datei wird verwendet: /tmp/arduino_build_720636/libraries/IRremote/ir_Samsung.cpp.o
Zuvor kompilierte Datei wird verwendet: /tmp/arduino_build_720636/libraries/IRremote/ir_Sanyo.cpp.o
/home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++ -c -g -Os -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_attiny -DARDUINO_ARCH_AVR -I/home/XXXXXX/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/XXXXXX/.arduino15/packages/attiny/hardware/avr/1.0.2/variants/tiny8 -I/home/XXXXXX/Arduino/libraries/IRremote /home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp -o /tmp/arduino_build_720636/libraries/IRremote/irSend.cpp.o
Zuvor kompilierte Datei wird verwendet: /tmp/arduino_build_720636/libraries/IRremote/ir_Template.cpp.o
Zuvor kompilierte Datei wird verwendet: /tmp/arduino_build_720636/libraries/IRremote/ir_LG.cpp.o
Zuvor kompilierte Datei wird verwendet: /tmp/arduino_build_720636/libraries/IRremote/ir_Whynter.cpp.o
Zuvor kompilierte Datei wird verwendet: /tmp/arduino_build_720636/libraries/IRremote/ir_Denon.cpp.o
Zuvor kompilierte Datei wird verwendet: /tmp/arduino_build_720636/libraries/IRremote/irISR.cpp.o
Zuvor kompilierte Datei wird verwendet: /tmp/arduino_build_720636/libraries/IRremote/ir_Aiwa.cpp.o
Zuvor kompilierte Datei wird verwendet: /tmp/arduino_build_720636/libraries/IRremote/ir_Dish.cpp.o
In file included from /home/XXXXXX/Arduino/libraries/IRremote/IRremote.h:24:0,
                 from /home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp:1:
/home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp: In member function 'void IRsend::mark(int)':
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:210:30: error: 'TCCR2A' was not declared in this scope
#define TIMER_ENABLE_PWM    (TCCR2A |= _BV(COM2B1))
                              ^
/home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp:24:2: note: in expansion of macro 'TIMER_ENABLE_PWM'
  TIMER_ENABLE_PWM; // Enable pin 3 PWM output

  ^~~~~~~~~~~~~~~~
In file included from /home/XXXXXX/Arduino/libraries/IRremote/IRremote.h:24:0,
                 from /home/XXXXXX/Arduino/libraries/IRremote/irRecv.cpp:1:
/home/XXXXXX/Arduino/libraries/IRremote/irRecv.cpp: In member function 'void IRrecv::enableIRIn()':
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:236:3: error: 'TCCR2A' was not declared in this scope
   TCCR2A = _BV(WGM21); \
   ^
/home/XXXXXX/Arduino/libraries/IRremote/irRecv.cpp:110:2: note: in expansion of macro 'TIMER_CONFIG_NORMAL'
  TIMER_CONFIG_NORMAL();

  ^~~~~~~~~~~~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:210:30: note: suggested alternative: 'TCCR0A'
#define TIMER_ENABLE_PWM    (TCCR2A |= _BV(COM2B1))
                              ^
/home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp:24:2: note: in expansion of macro 'TIMER_ENABLE_PWM'
  TIMER_ENABLE_PWM; // Enable pin 3 PWM output

  ^~~~~~~~~~~~~~~~
In file included from /home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/io.h:99:0,
                 from /home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/pgmspace.h:90,
                 from /home/XXXXXX/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino/Arduino.h:28,
                 from /home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:24,
                 from /home/XXXXXX/Arduino/libraries/IRremote/IRremote.h:24,
                 from /home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp:1:
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:210:44: error: 'COM2B1' was not declared in this scope
#define TIMER_ENABLE_PWM    (TCCR2A |= _BV(COM2B1))
                                            ^
/home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp:24:2: note: in expansion of macro 'TIMER_ENABLE_PWM'
  TIMER_ENABLE_PWM; // Enable pin 3 PWM output

  ^~~~~~~~~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:236:3: note: suggested alternative: 'TCCR0A'
   TCCR2A = _BV(WGM21); \
   ^
/home/XXXXXX/Arduino/libraries/IRremote/irRecv.cpp:110:2: note: in expansion of macro 'TIMER_CONFIG_NORMAL'
  TIMER_CONFIG_NORMAL();

  ^~~~~~~~~~~~~~~~~~~
In file included from /home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/io.h:99:0,
                 from /home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/pgmspace.h:90,
                 from /home/XXXXXX/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino/Arduino.h:28,
                 from /home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:24,
                 from /home/XXXXXX/Arduino/libraries/IRremote/IRremote.h:24,
                 from /home/XXXXXX/Arduino/libraries/IRremote/irRecv.cpp:1:
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:236:16: error: 'WGM21' was not declared in this scope
   TCCR2A = _BV(WGM21); \
                ^
/home/XXXXXX/Arduino/libraries/IRremote/irRecv.cpp:110:2: note: in expansion of macro 'TIMER_CONFIG_NORMAL'
  TIMER_CONFIG_NORMAL();

  ^~~~~~~~~~~~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:210:44: note: suggested alternative: 'COM1B1'
#define TIMER_ENABLE_PWM    (TCCR2A |= _BV(COM2B1))
                                            ^
/home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp:24:2: note: in expansion of macro 'TIMER_ENABLE_PWM'
  TIMER_ENABLE_PWM; // Enable pin 3 PWM output

  ^~~~~~~~~~~~~~~~
In file included from /home/XXXXXX/Arduino/libraries/IRremote/IRremote.h:24:0,
                 from /home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp:1:
/home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp: In member function 'void IRsend::space(int)':
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:211:30: error: 'TCCR2A' was not declared in this scope
#define TIMER_DISABLE_PWM   (TCCR2A &= ~(_BV(COM2B1)))
                              ^
/home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp:35:2: note: in expansion of macro 'TIMER_DISABLE_PWM'
  TIMER_DISABLE_PWM; // Disable pin 3 PWM output

  ^~~~~~~~~~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:236:16: note: suggested alternative: 'WGM01'
   TCCR2A = _BV(WGM21); \
                ^
/home/XXXXXX/Arduino/libraries/IRremote/irRecv.cpp:110:2: note: in expansion of macro 'TIMER_CONFIG_NORMAL'
  TIMER_CONFIG_NORMAL();

  ^~~~~~~~~~~~~~~~~~~
In file included from /home/XXXXXX/Arduino/libraries/IRremote/IRremote.h:24:0,
                 from /home/XXXXXX/Arduino/libraries/IRremote/irRecv.cpp:1:
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:237:3: error: 'TCCR2B' was not declared in this scope
   TCCR2B = _BV(CS21); \
   ^
/home/XXXXXX/Arduino/libraries/IRremote/irRecv.cpp:110:2: note: in expansion of macro 'TIMER_CONFIG_NORMAL'
  TIMER_CONFIG_NORMAL();

  ^~~~~~~~~~~~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:211:30: note: suggested alternative: 'TCCR0A'
#define TIMER_DISABLE_PWM   (TCCR2A &= ~(_BV(COM2B1)))
                              ^
/home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp:35:2: note: in expansion of macro 'TIMER_DISABLE_PWM'
  TIMER_DISABLE_PWM; // Disable pin 3 PWM output

  ^~~~~~~~~~~~~~~~~
In file included from /home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/io.h:99:0,
                 from /home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/pgmspace.h:90,
                 from /home/XXXXXX/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino/Arduino.h:28,
                 from /home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:24,
                 from /home/XXXXXX/Arduino/libraries/IRremote/IRremote.h:24,
                 from /home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp:1:
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:211:46: error: 'COM2B1' was not declared in this scope
#define TIMER_DISABLE_PWM   (TCCR2A &= ~(_BV(COM2B1)))
                                              ^
/home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp:35:2: note: in expansion of macro 'TIMER_DISABLE_PWM'
  TIMER_DISABLE_PWM; // Disable pin 3 PWM output

  ^~~~~~~~~~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:237:3: note: suggested alternative: 'TCCR0B'
   TCCR2B = _BV(CS21); \
   ^
/home/XXXXXX/Arduino/libraries/IRremote/irRecv.cpp:110:2: note: in expansion of macro 'TIMER_CONFIG_NORMAL'
  TIMER_CONFIG_NORMAL();

  ^~~~~~~~~~~~~~~~~~~
In file included from /home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/io.h:99:0,
                 from /home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/pgmspace.h:90,
                 from /home/XXXXXX/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino/Arduino.h:28,
                 from /home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:24,
                 from /home/XXXXXX/Arduino/libraries/IRremote/IRremote.h:24,
                 from /home/XXXXXX/Arduino/libraries/IRremote/irRecv.cpp:1:
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:237:16: error: 'CS21' was not declared in this scope
   TCCR2B = _BV(CS21); \
                ^
/home/XXXXXX/Arduino/libraries/IRremote/irRecv.cpp:110:2: note: in expansion of macro 'TIMER_CONFIG_NORMAL'
  TIMER_CONFIG_NORMAL();

  ^~~~~~~~~~~~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:237:16: note: suggested alternative: 'CS01'
   TCCR2B = _BV(CS21); \
                ^
/home/XXXXXX/Arduino/libraries/IRremote/irRecv.cpp:110:2: note: in expansion of macro 'TIMER_CONFIG_NORMAL'
  TIMER_CONFIG_NORMAL();

  ^~~~~~~~~~~~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:211:46: note: suggested alternative: 'COM1B1'
#define TIMER_DISABLE_PWM   (TCCR2A &= ~(_BV(COM2B1)))
                                              ^
/home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp:35:2: note: in expansion of macro 'TIMER_DISABLE_PWM'
  TIMER_DISABLE_PWM; // Disable pin 3 PWM output

  ^~~~~~~~~~~~~~~~~
In file included from /home/XXXXXX/Arduino/libraries/IRremote/IRremote.h:24:0,
                 from /home/XXXXXX/Arduino/libraries/IRremote/irRecv.cpp:1:
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:238:3: error: 'OCR2A' was not declared in this scope
   OCR2A  = TIMER_COUNT_TOP / 8; \
   ^
/home/XXXXXX/Arduino/libraries/IRremote/irRecv.cpp:110:2: note: in expansion of macro 'TIMER_CONFIG_NORMAL'
  TIMER_CONFIG_NORMAL();

  ^~~~~~~~~~~~~~~~~~~
In file included from /home/XXXXXX/Arduino/libraries/IRremote/IRremote.h:24:0,
                 from /home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp:1:
/home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp: In member function 'void IRsend::enableIROut(int)':
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:213:30: error: 'TIMSK2' was not declared in this scope
#define TIMER_DISABLE_INTR  (TIMSK2 = 0)
                              ^
/home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp:54:2: note: in expansion of macro 'TIMER_DISABLE_INTR'
  TIMER_DISABLE_INTR; //Timer2 Overflow Interrupt

  ^~~~~~~~~~~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:238:3: note: suggested alternative: 'OCR0A'
   OCR2A  = TIMER_COUNT_TOP / 8; \
   ^
/home/XXXXXX/Arduino/libraries/IRremote/irRecv.cpp:110:2: note: in expansion of macro 'TIMER_CONFIG_NORMAL'
  TIMER_CONFIG_NORMAL();

  ^~~~~~~~~~~~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:239:3: error: 'TCNT2' was not declared in this scope
   TCNT2  = 0; \
   ^
/home/XXXXXX/Arduino/libraries/IRremote/irRecv.cpp:110:2: note: in expansion of macro 'TIMER_CONFIG_NORMAL'
  TIMER_CONFIG_NORMAL();

  ^~~~~~~~~~~~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:213:30: note: suggested alternative: 'TIMSK'
#define TIMER_DISABLE_INTR  (TIMSK2 = 0)
                              ^
/home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp:54:2: note: in expansion of macro 'TIMER_DISABLE_INTR'
  TIMER_DISABLE_INTR; //Timer2 Overflow Interrupt

  ^~~~~~~~~~~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:218:2: error: 'TCCR2A' was not declared in this scope
  TCCR2A               = _BV(WGM20); \
  ^
/home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp:64:2: note: in expansion of macro 'TIMER_CONFIG_KHZ'
  TIMER_CONFIG_KHZ(khz);

  ^~~~~~~~~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:239:3: note: suggested alternative: 'TCNT0'
   TCNT2  = 0; \
   ^
/home/XXXXXX/Arduino/libraries/IRremote/irRecv.cpp:110:2: note: in expansion of macro 'TIMER_CONFIG_NORMAL'
  TIMER_CONFIG_NORMAL();

  ^~~~~~~~~~~~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:212:30: error: 'TIMSK2' was not declared in this scope
#define TIMER_ENABLE_INTR   (TIMSK2 = _BV(OCIE2A))
                              ^
/home/XXXXXX/Arduino/libraries/IRremote/irRecv.cpp:113:2: note: in expansion of macro 'TIMER_ENABLE_INTR'
  TIMER_ENABLE_INTR;

  ^~~~~~~~~~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:218:2: note: suggested alternative: 'TCCR0A'
  TCCR2A               = _BV(WGM20); \
  ^
/home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp:64:2: note: in expansion of macro 'TIMER_CONFIG_KHZ'
  TIMER_CONFIG_KHZ(khz);

  ^~~~~~~~~~~~~~~~
In file included from /home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/io.h:99:0,
                 from /home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/pgmspace.h:90,
                 from /home/XXXXXX/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino/Arduino.h:28,
                 from /home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:24,
                 from /home/XXXXXX/Arduino/libraries/IRremote/IRremote.h:24,
                 from /home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp:1:
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:218:29: error: 'WGM20' was not declared in this scope
  TCCR2A               = _BV(WGM20); \
                             ^
/home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp:64:2: note: in expansion of macro 'TIMER_CONFIG_KHZ'
  TIMER_CONFIG_KHZ(khz);

  ^~~~~~~~~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:212:30: note: suggested alternative: 'TIMSK'
#define TIMER_ENABLE_INTR   (TIMSK2 = _BV(OCIE2A))
                              ^
/home/XXXXXX/Arduino/libraries/IRremote/irRecv.cpp:113:2: note: in expansion of macro 'TIMER_ENABLE_INTR'
  TIMER_ENABLE_INTR;

  ^~~~~~~~~~~~~~~~~
In file included from /home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/io.h:99:0,
                 from /home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/pgmspace.h:90,
                 from /home/XXXXXX/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino/Arduino.h:28,
                 from /home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:24,
                 from /home/XXXXXX/Arduino/libraries/IRremote/IRremote.h:24,
                 from /home/XXXXXX/Arduino/libraries/IRremote/irRecv.cpp:1:
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:212:43: error: 'OCIE2A' was not declared in this scope
#define TIMER_ENABLE_INTR   (TIMSK2 = _BV(OCIE2A))
                                           ^
/home/XXXXXX/Arduino/libraries/IRremote/irRecv.cpp:113:2: note: in expansion of macro 'TIMER_ENABLE_INTR'
  TIMER_ENABLE_INTR;

  ^~~~~~~~~~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:218:29: note: suggested alternative: 'WGM00'
  TCCR2A               = _BV(WGM20); \
                             ^
/home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp:64:2: note: in expansion of macro 'TIMER_CONFIG_KHZ'
  TIMER_CONFIG_KHZ(khz);

  ^~~~~~~~~~~~~~~~
In file included from /home/XXXXXX/Arduino/libraries/IRremote/IRremote.h:24:0,
                 from /home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp:1:
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:219:2: error: 'TCCR2B' was not declared in this scope
  TCCR2B               = _BV(WGM22) | _BV(CS20); \
  ^
/home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp:64:2: note: in expansion of macro 'TIMER_CONFIG_KHZ'
  TIMER_CONFIG_KHZ(khz);

  ^~~~~~~~~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:212:43: note: suggested alternative: 'OCIE0A'
#define TIMER_ENABLE_INTR   (TIMSK2 = _BV(OCIE2A))
                                           ^
/home/XXXXXX/Arduino/libraries/IRremote/irRecv.cpp:113:2: note: in expansion of macro 'TIMER_ENABLE_INTR'
  TIMER_ENABLE_INTR;

  ^~~~~~~~~~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:219:2: note: suggested alternative: 'TCCR0B'
  TCCR2B               = _BV(WGM22) | _BV(CS20); \
  ^
/home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp:64:2: note: in expansion of macro 'TIMER_CONFIG_KHZ'
  TIMER_CONFIG_KHZ(khz);

  ^~~~~~~~~~~~~~~~
In file included from /home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/io.h:99:0,
                 from /home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/pgmspace.h:90,
                 from /home/XXXXXX/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino/Arduino.h:28,
                 from /home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:24,
                 from /home/XXXXXX/Arduino/libraries/IRremote/IRremote.h:24,
                 from /home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp:1:
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:219:29: error: 'WGM22' was not declared in this scope
  TCCR2B               = _BV(WGM22) | _BV(CS20); \
                             ^
/home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp:64:2: note: in expansion of macro 'TIMER_CONFIG_KHZ'
  TIMER_CONFIG_KHZ(khz);

  ^~~~~~~~~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:219:29: note: suggested alternative: 'WGM02'
  TCCR2B               = _BV(WGM22) | _BV(CS20); \
                             ^
/home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp:64:2: note: in expansion of macro 'TIMER_CONFIG_KHZ'
  TIMER_CONFIG_KHZ(khz);

  ^~~~~~~~~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:219:42: error: 'CS20' was not declared in this scope
  TCCR2B               = _BV(WGM22) | _BV(CS20); \
                                          ^
/home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp:64:2: note: in expansion of macro 'TIMER_CONFIG_KHZ'
  TIMER_CONFIG_KHZ(khz);

  ^~~~~~~~~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:219:42: note: suggested alternative: 'CS00'
  TCCR2B               = _BV(WGM22) | _BV(CS20); \
                                          ^
/home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp:64:2: note: in expansion of macro 'TIMER_CONFIG_KHZ'
  TIMER_CONFIG_KHZ(khz);

  ^~~~~~~~~~~~~~~~
In file included from /home/XXXXXX/Arduino/libraries/IRremote/IRremote.h:24:0,
                 from /home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp:1:
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:220:2: error: 'OCR2A' was not declared in this scope
  OCR2A                = pwmval; \
  ^
/home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp:64:2: note: in expansion of macro 'TIMER_CONFIG_KHZ'
  TIMER_CONFIG_KHZ(khz);

  ^~~~~~~~~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:220:2: note: suggested alternative: 'OCR0A'
  OCR2A                = pwmval; \
  ^
/home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp:64:2: note: in expansion of macro 'TIMER_CONFIG_KHZ'
  TIMER_CONFIG_KHZ(khz);

  ^~~~~~~~~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:221:2: error: 'OCR2B' was not declared in this scope
  OCR2B                = pwmval / 3; \
  ^
/home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp:64:2: note: in expansion of macro 'TIMER_CONFIG_KHZ'
  TIMER_CONFIG_KHZ(khz);

  ^~~~~~~~~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:221:2: note: suggested alternative: 'OCR0B'
  OCR2B                = pwmval / 3; \
  ^
/home/XXXXXX/Arduino/libraries/IRremote/irSend.cpp:64:2: note: in expansion of macro 'TIMER_CONFIG_KHZ'
  TIMER_CONFIG_KHZ(khz);

  ^~~~~~~~~~~~~~~~
Bibliothek IRremote in Version 1.0 im Ordner: /home/XXXXXX/Arduino/libraries/IRremote  wird verwendet
exit status 1
Fehler beim Kompilieren für das Board ATtiny25/45/85.
Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
11.12.2019, 12:17
Beitrag #34
RE: Programm läuft auf UNO aber nicht auf ATTINY85
Ich habe meine Bibliothek mal entfernt, und die von Dir verlinkte eingebunden.
Auch das gibt leider eine Fehlermeldung beim Kompilieren:

Code:
Arduino: 1.8.9 (Linux), Board: "ATtiny25/45/85, ATtiny85, Internal 8 MHz"

/opt/arduino-1.8.9/arduino-builder -dump-prefs -logger=machine -hardware /opt/arduino-1.8.9/hardware -hardware /home/XXXXXX/.arduino15/packages -tools /opt/arduino-1.8.9/tools-builder -tools /opt/arduino-1.8.9/hardware/tools/avr -tools /home/XXXXXX/.arduino15/packages -built-in-libraries /opt/arduino-1.8.9/libraries -libraries /home/XXXXXX/Arduino/libraries -fqbn=attiny:avr:ATtinyX5:cpu=attiny85,clock=internal8 -vid-pid=0X2A03_0X0043 -ide-version=10809 -build-path /tmp/arduino_build_530803 -warnings=default -build-cache /tmp/arduino_cache_607034 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=/home/XXXXXX/.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=/home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5 -prefs=runtime.tools.arduinoOTA.path=/home/XXXXXX/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=/home/XXXXXX/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.avrdude.path=/home/XXXXXX/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/home/XXXXXX/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -verbose /home/XXXXXX/Arduino/IR-LED-Weihn-V2/IR-LED-Weihn-V2.ino
/opt/arduino-1.8.9/arduino-builder -compile -logger=machine -hardware /opt/arduino-1.8.9/hardware -hardware /home/XXXXXX/.arduino15/packages -tools /opt/arduino-1.8.9/tools-builder -tools /opt/arduino-1.8.9/hardware/tools/avr -tools /home/XXXXXX/.arduino15/packages -built-in-libraries /opt/arduino-1.8.9/libraries -libraries /home/XXXXXX/Arduino/libraries -fqbn=attiny:avr:ATtinyX5:cpu=attiny85,clock=internal8 -vid-pid=0X2A03_0X0043 -ide-version=10809 -build-path /tmp/arduino_build_530803 -warnings=default -build-cache /tmp/arduino_cache_607034 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=/home/XXXXXX/.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=/home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5 -prefs=runtime.tools.arduinoOTA.path=/home/XXXXXX/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=/home/XXXXXX/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.avrdude.path=/home/XXXXXX/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/home/XXXXXX/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -verbose /home/XXXXXX/Arduino/IR-LED-Weihn-V2/IR-LED-Weihn-V2.ino
Using board 'ATtinyX5' from platform in folder: /home/XXXXXX/.arduino15/packages/attiny/hardware/avr/1.0.2
Using core 'arduino' from platform in folder: /home/XXXXXX/.arduino15/packages/arduino/hardware/avr/1.8.1
Detecting libraries used...
/home/XXXXXX/.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=attiny85 -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_attiny -DARDUINO_ARCH_AVR -I/home/XXXXXX/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/XXXXXX/.arduino15/packages/attiny/hardware/avr/1.0.2/variants/tiny8 /tmp/arduino_build_530803/sketch/IR-LED-Weihn-V2.ino.cpp -o /dev/null
/home/XXXXXX/.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=attiny85 -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_attiny -DARDUINO_ARCH_AVR -I/home/XXXXXX/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/XXXXXX/.arduino15/packages/attiny/hardware/avr/1.0.2/variants/tiny8 -I/home/XXXXXX/Arduino/libraries/IRremote /tmp/arduino_build_530803/sketch/IR-LED-Weihn-V2.ino.cpp -o /dev/null
/home/XXXXXX/.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=attiny85 -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_attiny -DARDUINO_ARCH_AVR -I/home/XXXXXX/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/XXXXXX/.arduino15/packages/attiny/hardware/avr/1.0.2/variants/tiny8 -I/home/XXXXXX/Arduino/libraries/IRremote /home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp -o /dev/null
In file included from /home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:13:0:
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:15:10: fatal error: WProgram.h: No such file or directory
#include <WProgram.h>

          ^~~~~~~~~~~~
compilation terminated.
Bibliothek IRremote im Ordner: /home/XXXXXX/Arduino/libraries/IRremote (legacy) wird verwendet
exit status 1
Fehler beim Kompilieren für das Board ATtiny25/45/85.
Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
11.12.2019, 12:34
Beitrag #35
RE: Programm läuft auf UNO aber nicht auf ATTINY85
Code:
// Ersetze mal das
#include "WProgram.h"
// durch
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif

Gruß Tommy

"Wer den schnellen Erfolg sucht, sollte nicht programmieren, sondern Holz hacken." (Quelle unbekannt)
Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
11.12.2019, 14:15
Beitrag #36
RE: Programm läuft auf UNO aber nicht auf ATTINY85
Hi Tommy

Diese Zeile: #include "WProgram.h" habe ich der Datei " IRremoteInt.h " gefunden und entsprechend Deinem Vorschlag ausgetauscht.


Das Ergebniss ist (leider nur) eine andere Fehlermeldung.

Code:
Arduino: 1.8.9 (Linux), Board: "ATtiny25/45/85, ATtiny85, Internal 8 MHz"

/opt/arduino-1.8.9/arduino-builder -dump-prefs -logger=machine -hardware /opt/arduino-1.8.9/hardware -hardware /home/XXXXXX/.arduino15/packages -tools /opt/arduino-1.8.9/tools-builder -tools /opt/arduino-1.8.9/hardware/tools/avr -tools /home/XXXXXX/.arduino15/packages -built-in-libraries /opt/arduino-1.8.9/libraries -libraries /home/XXXXXX/Arduino/libraries -fqbn=attiny:avr:ATtinyX5:cpu=attiny85,clock=internal8 -ide-version=10809 -build-path /tmp/arduino_build_541640 -warnings=default -build-cache /tmp/arduino_cache_117914 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=/home/XXXXXX/.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=/home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5 -prefs=runtime.tools.arduinoOTA.path=/home/XXXXXX/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=/home/XXXXXX/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.avrdude.path=/home/XXXXXX/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/home/XXXXXX/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -verbose /home/XXXXXX/Arduino/IR-LED-Weihn-V2/IR-LED-Weihn-V2.ino
/opt/arduino-1.8.9/arduino-builder -compile -logger=machine -hardware /opt/arduino-1.8.9/hardware -hardware /home/XXXXXX/.arduino15/packages -tools /opt/arduino-1.8.9/tools-builder -tools /opt/arduino-1.8.9/hardware/tools/avr -tools /home/XXXXXX/.arduino15/packages -built-in-libraries /opt/arduino-1.8.9/libraries -libraries /home/XXXXXX/Arduino/libraries -fqbn=attiny:avr:ATtinyX5:cpu=attiny85,clock=internal8 -ide-version=10809 -build-path /tmp/arduino_build_541640 -warnings=default -build-cache /tmp/arduino_cache_117914 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=/home/XXXXXX/.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=/home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5 -prefs=runtime.tools.arduinoOTA.path=/home/XXXXXX/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=/home/XXXXXX/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.avrdude.path=/home/XXXXXX/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/home/XXXXXX/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -verbose /home/XXXXXX/Arduino/IR-LED-Weihn-V2/IR-LED-Weihn-V2.ino
Using board 'ATtinyX5' from platform in folder: /home/XXXXXX/.arduino15/packages/attiny/hardware/avr/1.0.2
Using core 'arduino' from platform in folder: /home/XXXXXX/.arduino15/packages/arduino/hardware/avr/1.8.1
Detecting libraries used...
/home/XXXXXX/.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=attiny85 -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_attiny -DARDUINO_ARCH_AVR -I/home/XXXXXX/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/XXXXXX/.arduino15/packages/attiny/hardware/avr/1.0.2/variants/tiny8 /tmp/arduino_build_541640/sketch/IR-LED-Weihn-V2.ino.cpp -o /dev/null
/home/XXXXXX/.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=attiny85 -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_attiny -DARDUINO_ARCH_AVR -I/home/XXXXXX/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/XXXXXX/.arduino15/packages/attiny/hardware/avr/1.0.2/variants/tiny8 -I/home/XXXXXX/Arduino/libraries/IRremote /tmp/arduino_build_541640/sketch/IR-LED-Weihn-V2.ino.cpp -o /dev/null
/home/XXXXXX/.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=attiny85 -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_attiny -DARDUINO_ARCH_AVR -I/home/XXXXXX/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/XXXXXX/.arduino15/packages/attiny/hardware/avr/1.0.2/variants/tiny8 -I/home/XXXXXX/Arduino/libraries/IRremote /home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp -o /dev/null
Generating function prototypes...
/home/XXXXXX/.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=attiny85 -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_attiny -DARDUINO_ARCH_AVR -I/home/XXXXXX/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/XXXXXX/.arduino15/packages/attiny/hardware/avr/1.0.2/variants/tiny8 -I/home/XXXXXX/Arduino/libraries/IRremote /tmp/arduino_build_541640/sketch/IR-LED-Weihn-V2.ino.cpp -o /tmp/arduino_build_541640/preproc/ctags_target_for_gcc_minus_e.cpp
/opt/arduino-1.8.9/tools-builder/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /tmp/arduino_build_541640/preproc/ctags_target_for_gcc_minus_e.cpp
Sketch wird kompiliert...
/home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++ -c -g -Os -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_attiny -DARDUINO_ARCH_AVR -I/home/XXXXXX/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/XXXXXX/.arduino15/packages/attiny/hardware/avr/1.0.2/variants/tiny8 -I/home/XXXXXX/Arduino/libraries/IRremote /tmp/arduino_build_541640/sketch/IR-LED-Weihn-V2.ino.cpp -o /tmp/arduino_build_541640/sketch/IR-LED-Weihn-V2.ino.cpp.o
/home/XXXXXX/Arduino/IR-LED-Weihn-V2/IR-LED-Weihn-V2.ino:7:31: warning: extra tokens at end of #include directive
#include <IRremote.h>         /IRremote by shirriff v2.2.3
                               ^
Compiling libraries...
Compiling library "IRremote"
/home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++ -c -g -Os -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=attiny85 -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_attiny -DARDUINO_ARCH_AVR -I/home/XXXXXX/.arduino15/packages/arduino/hardware/avr/1.8.1/cores/arduino -I/home/XXXXXX/.arduino15/packages/attiny/hardware/avr/1.0.2/variants/tiny8 -I/home/XXXXXX/Arduino/libraries/IRremote /home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp -o /tmp/arduino_build_541640/libraries/IRremote/IRremote.cpp.o
In file included from /home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:13:0:
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:108:3: error: 'uint8_t' does not name a type
   uint8_t recvpin;           // pin for IR data from detector

   ^~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:109:3: error: 'uint8_t' does not name a type
   uint8_t rcvstate;          // state machine

   ^~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:110:3: error: 'uint8_t' does not name a type
   uint8_t blinkflag;         // TRUE to enable blinking of pin 13 on IR processing

   ^~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:113:3: error: 'uint8_t' does not name a type
   uint8_t rawlen;         // counter of entries in rawbuf

   ^~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp: In member function 'void IRsend::mark(int)':
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:176:3: error: 'TCCR2A' was not declared in this scope
   TCCR2A |= _BV(COM2B1); // Enable pin 3 PWM output

   ^~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:176:3: note: suggested alternative: 'TCCR0A'
   TCCR2A |= _BV(COM2B1); // Enable pin 3 PWM output

   ^~~~~~
   TCCR0A
In file included from /home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/io.h:99:0,
                 from /home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/interrupt.h:38,
                 from /home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:16:
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:176:17: error: 'COM2B1' was not declared in this scope
   TCCR2A |= _BV(COM2B1); // Enable pin 3 PWM output

                 ^
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:176:17: note: suggested alternative: 'COM1B1'
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:178:3: error: 'delayMicroseconds' was not declared in this scope
   delayMicroseconds(time);

   ^~~~~~~~~~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp: In member function 'void IRsend::space(int)':
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:188:3: error: 'TCCR2A' was not declared in this scope
   TCCR2A &= ~(_BV(COM2B1)); // Disable pin 3 PWM output

   ^~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:188:3: note: suggested alternative: 'TCCR0A'
   TCCR2A &= ~(_BV(COM2B1)); // Disable pin 3 PWM output

   ^~~~~~
   TCCR0A
In file included from /home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/io.h:99:0,
                 from /home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/interrupt.h:38,
                 from /home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:16:
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:188:19: error: 'COM2B1' was not declared in this scope
   TCCR2A &= ~(_BV(COM2B1)); // Disable pin 3 PWM output

                   ^
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:188:19: note: suggested alternative: 'COM1B1'
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:190:5: error: 'delayMicroseconds' was not declared in this scope
     delayMicroseconds(time);

     ^~~~~~~~~~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp: In member function 'void IRsend::enableIROut(int)':
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:210:3: error: 'TIMSK2' was not declared in this scope
   TIMSK2 &= ~_BV(TOIE2); //Timer2 Overflow Interrupt

   ^~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:210:3: note: suggested alternative: 'TIMSK'
   TIMSK2 &= ~_BV(TOIE2); //Timer2 Overflow Interrupt

   ^~~~~~
   TIMSK
In file included from /home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/io.h:99:0,
                 from /home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/interrupt.h:38,
                 from /home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:16:
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:210:18: error: 'TOIE2' was not declared in this scope
   TIMSK2 &= ~_BV(TOIE2); //Timer2 Overflow Interrupt

                  ^
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:210:18: note: suggested alternative: 'TOIE0'
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:213:14: error: 'OUTPUT' was not declared in this scope
   pinMode(3, OUTPUT);

              ^~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:213:3: error: 'pinMode' was not declared in this scope
   pinMode(3, OUTPUT);

   ^~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:214:19: error: 'LOW' was not declared in this scope
   digitalWrite(3, LOW); // When not sending PWM, we want it low

                   ^~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:214:19: note: suggested alternative: 'LTOL'
   digitalWrite(3, LOW); // When not sending PWM, we want it low

                   ^~~
                   LTOL
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:214:3: error: 'digitalWrite' was not declared in this scope
   digitalWrite(3, LOW); // When not sending PWM, we want it low

   ^~~~~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:228:3: error: 'TCCR2A' was not declared in this scope
   TCCR2A = _BV(WGM20);

   ^~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:228:3: note: suggested alternative: 'TCCR0A'
   TCCR2A = _BV(WGM20);

   ^~~~~~
   TCCR0A
In file included from /home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/io.h:99:0,
                 from /home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/interrupt.h:38,
                 from /home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:16:
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:228:16: error: 'WGM20' was not declared in this scope
   TCCR2A = _BV(WGM20);

                ^
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:228:16: note: suggested alternative: 'WGM00'
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:229:3: error: 'TCCR2B' was not declared in this scope
   TCCR2B = _BV(WGM22) | _BV(CS20);

   ^~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:229:3: note: suggested alternative: 'TCCR0B'
   TCCR2B = _BV(WGM22) | _BV(CS20);

   ^~~~~~
   TCCR0B
In file included from /home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/io.h:99:0,
                 from /home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/interrupt.h:38,
                 from /home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:16:
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:229:16: error: 'WGM22' was not declared in this scope
   TCCR2B = _BV(WGM22) | _BV(CS20);

                ^
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:229:16: note: suggested alternative: 'WGM02'
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:229:29: error: 'CS20' was not declared in this scope
   TCCR2B = _BV(WGM22) | _BV(CS20);

                             ^
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:229:29: note: suggested alternative: 'CS00'
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:232:3: error: 'OCR2A' was not declared in this scope
   OCR2A = SYSCLOCK / 2 / khz / 1000;

   ^~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:232:3: note: suggested alternative: 'OCR0A'
   OCR2A = SYSCLOCK / 2 / khz / 1000;

   ^~~~~
   OCR0A
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:233:3: error: 'OCR2B' was not declared in this scope
   OCR2B = OCR2A / 3; // 33% duty cycle

   ^~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:233:3: note: suggested alternative: 'OCR0B'
   OCR2B = OCR2A / 3; // 33% duty cycle

   ^~~~~
   OCR0B
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp: In constructor 'IRrecv::IRrecv(int)':
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:241:12: error: 'volatile struct irparams_t' has no member named 'recvpin'
   irparams.recvpin = recvpin;

            ^~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:242:12: error: 'volatile struct irparams_t' has no member named 'blinkflag'
   irparams.blinkflag = 0;

            ^~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp: In member function 'void IRrecv::enableIRIn()':
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:262:3: error: 'TCCR2A' was not declared in this scope
   TCCR2A = 0;  // normal mode

   ^~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:262:3: note: suggested alternative: 'TCCR0A'
   TCCR2A = 0;  // normal mode

   ^~~~~~
   TCCR0A
In file included from /home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/io.h:99:0,
                 from /home/XXXXXX/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/interrupt.h:38,
                 from /home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:16:
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:267:7: error: 'TCCR2B' was not declared in this scope
   cbi(TCCR2B,CS22);

       ^
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:267:3: note: in expansion of macro 'cbi'
   cbi(TCCR2B,CS22);

   ^~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:267:7: note: suggested alternative: 'TCCR0B'
   cbi(TCCR2B,CS22);

       ^
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:267:3: note: in expansion of macro 'cbi'
   cbi(TCCR2B,CS22);

   ^~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:267:14: error: 'CS22' was not declared in this scope
   cbi(TCCR2B,CS22);

              ^
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:267:3: note: in expansion of macro 'cbi'
   cbi(TCCR2B,CS22);

   ^~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:267:14: note: suggested alternative: 'CS02'
   cbi(TCCR2B,CS22);

              ^
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:267:3: note: in expansion of macro 'cbi'
   cbi(TCCR2B,CS22);

   ^~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:268:14: error: 'CS21' was not declared in this scope
   sbi(TCCR2B,CS21);

              ^
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:268:3: note: in expansion of macro 'sbi'
   sbi(TCCR2B,CS21);

   ^~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:268:14: note: suggested alternative: 'CS01'
   sbi(TCCR2B,CS21);

              ^
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:268:3: note: in expansion of macro 'sbi'
   sbi(TCCR2B,CS21);

   ^~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:269:14: error: 'CS20' was not declared in this scope
   cbi(TCCR2B,CS20);

              ^
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:269:3: note: in expansion of macro 'cbi'
   cbi(TCCR2B,CS20);

   ^~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:269:14: note: suggested alternative: 'CS00'
   cbi(TCCR2B,CS20);

              ^
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:269:3: note: in expansion of macro 'cbi'
   cbi(TCCR2B,CS20);

   ^~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:272:7: error: 'TIMSK2' was not declared in this scope
   sbi(TIMSK2,TOIE2);

       ^
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:272:3: note: in expansion of macro 'sbi'
   sbi(TIMSK2,TOIE2);

   ^~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:272:7: note: suggested alternative: 'TIMSK'
   sbi(TIMSK2,TOIE2);

       ^
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:272:3: note: in expansion of macro 'sbi'
   sbi(TIMSK2,TOIE2);

   ^~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:272:14: error: 'TOIE2' was not declared in this scope
   sbi(TIMSK2,TOIE2);

              ^
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:272:3: note: in expansion of macro 'sbi'
   sbi(TIMSK2,TOIE2);

   ^~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:272:14: note: suggested alternative: 'TOIE0'
   sbi(TIMSK2,TOIE2);

              ^
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:272:3: note: in expansion of macro 'sbi'
   sbi(TIMSK2,TOIE2);

   ^~~
In file included from /home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:13:0:
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:57:24: error: 'TCNT2' was not declared in this scope
   #define RESET_TIMER2 TCNT2 = INIT_TIMER_COUNT2

                        ^
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:278:3: note: in expansion of macro 'RESET_TIMER2'
   RESET_TIMER2;

   ^~~~~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:57:24: note: suggested alternative: 'TCNT0'
   #define RESET_TIMER2 TCNT2 = INIT_TIMER_COUNT2

                        ^
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:278:3: note: in expansion of macro 'RESET_TIMER2'
   RESET_TIMER2;

   ^~~~~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:283:12: error: 'volatile struct irparams_t' has no member named 'rcvstate'
   irparams.rcvstate = STATE_IDLE;

            ^~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:284:12: error: 'volatile struct irparams_t' has no member named 'rawlen'; did you mean 'rawbuf'?
   irparams.rawlen = 0;

            ^~~~~~
            rawbuf
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:288:20: error: 'volatile struct irparams_t' has no member named 'recvpin'
   pinMode(irparams.recvpin, INPUT);

                    ^~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:288:29: error: 'INPUT' was not declared in this scope
   pinMode(irparams.recvpin, INPUT);

                             ^~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:288:3: error: 'pinMode' was not declared in this scope
   pinMode(irparams.recvpin, INPUT);

   ^~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp: In member function 'void IRrecv::blink13(int)':
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:294:12: error: 'volatile struct irparams_t' has no member named 'blinkflag'
   irparams.blinkflag = blinkflag;

            ^~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:296:23: error: 'OUTPUT' was not declared in this scope
     pinMode(BLINKLED, OUTPUT);

                       ^~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:296:5: error: 'pinMode' was not declared in this scope
     pinMode(BLINKLED, OUTPUT);

     ^~~~~~~
In file included from /home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:13:0:
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp: In function 'void __vector_5()':
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:57:24: error: 'TCNT2' was not declared in this scope
   #define RESET_TIMER2 TCNT2 = INIT_TIMER_COUNT2

                        ^
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:308:3: note: in expansion of macro 'RESET_TIMER2'
   RESET_TIMER2;

   ^~~~~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremoteInt.h:57:24: note: suggested alternative: 'TCNT0'
   #define RESET_TIMER2 TCNT2 = INIT_TIMER_COUNT2

                        ^
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:308:3: note: in expansion of macro 'RESET_TIMER2'
   RESET_TIMER2;

   ^~~~~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:310:50: error: 'volatile struct irparams_t' has no member named 'recvpin'
   uint8_t irdata = (uint8_t)digitalRead(irparams.recvpin);

                                                  ^~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:310:29: error: 'digitalRead' was not declared in this scope
   uint8_t irdata = (uint8_t)digitalRead(irparams.recvpin);

                             ^~~~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:313:16: error: 'volatile struct irparams_t' has no member named 'rawlen'; did you mean 'rawbuf'?
   if (irparams.rawlen >= RAWBUF) {

                ^~~~~~
                rawbuf
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:315:14: error: 'volatile struct irparams_t' has no member named 'rcvstate'
     irparams.rcvstate = STATE_STOP;

              ^~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:317:19: error: 'volatile struct irparams_t' has no member named 'rcvstate'
   switch(irparams.rcvstate) {

                   ^~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:326:18: error: 'volatile struct irparams_t' has no member named 'rawlen'; did you mean 'rawbuf'?
         irparams.rawlen = 0;

                  ^~~~~~
                  rawbuf
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:327:34: error: 'volatile struct irparams_t' has no member named 'rawlen'; did you mean 'rawbuf'?
         irparams.rawbuf[irparams.rawlen++] = irparams.timer;

                                  ^~~~~~
                                  rawbuf
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:329:18: error: 'volatile struct irparams_t' has no member named 'rcvstate'
         irparams.rcvstate = STATE_MARK;

                  ^~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:335:32: error: 'volatile struct irparams_t' has no member named 'rawlen'; did you mean 'rawbuf'?
       irparams.rawbuf[irparams.rawlen++] = irparams.timer;

                                ^~~~~~
                                rawbuf
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:337:16: error: 'volatile struct irparams_t' has no member named 'rcvstate'
       irparams.rcvstate = STATE_SPACE;

                ^~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:342:32: error: 'volatile struct irparams_t' has no member named 'rawlen'; did you mean 'rawbuf'?
       irparams.rawbuf[irparams.rawlen++] = irparams.timer;

                                ^~~~~~
                                rawbuf
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:344:16: error: 'volatile struct irparams_t' has no member named 'rcvstate'
       irparams.rcvstate = STATE_MARK;

                ^~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:352:18: error: 'volatile struct irparams_t' has no member named 'rcvstate'
         irparams.rcvstate = STATE_STOP;

                  ^~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:363:16: error: 'volatile struct irparams_t' has no member named 'blinkflag'
   if (irparams.blinkflag) {

                ^~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:365:16: error: 'B00100000' was not declared in this scope
       PORTB |= B00100000;  // turn pin 13 LED on

                ^~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:368:16: error: 'B11011111' was not declared in this scope
       PORTB &= B11011111;  // turn pin 13 LED off

                ^~~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp: In member function 'void IRrecv::resume()':
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:374:12: error: 'volatile struct irparams_t' has no member named 'rcvstate'
   irparams.rcvstate = STATE_IDLE;

            ^~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:375:12: error: 'volatile struct irparams_t' has no member named 'rawlen'; did you mean 'rawbuf'?
   irparams.rawlen = 0;

            ^~~~~~
            rawbuf
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp: In member function 'int IRrecv::decode(decode_results*)':
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:385:30: error: 'volatile struct irparams_t' has no member named 'rawlen'; did you mean 'rawbuf'?
   results->rawlen = irparams.rawlen;

                              ^~~~~~
                              rawbuf
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:386:16: error: 'volatile struct irparams_t' has no member named 'rcvstate'
   if (irparams.rcvstate != STATE_STOP) {

                ^~~~~~~~
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp: In member function 'long int IRrecv::decodeNEC(decode_results*)':
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:434:16: error: 'volatile struct irparams_t' has no member named 'rawlen'; did you mean 'rawbuf'?
   if (irparams.rawlen == 4 &&

                ^~~~~~
                rawbuf
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:442:16: error: 'volatile struct irparams_t' has no member named 'rawlen'; did you mean 'rawbuf'?
   if (irparams.rawlen < 2 * NEC_BITS + 4) {

                ^~~~~~
                rawbuf
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp: In member function 'long int IRrecv::decodeSony(decode_results*)':
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:475:16: error: 'volatile struct irparams_t' has no member named 'rawlen'; did you mean 'rawbuf'?
   if (irparams.rawlen < 2 * SONY_BITS + 2) {

                ^~~~~~
                rawbuf
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:485:32: error: 'volatile struct irparams_t' has no member named 'rawlen'; did you mean 'rawbuf'?
   while (offset + 1 < irparams.rawlen) {

                                ^~~~~~
                                rawbuf
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp: In member function 'long int IRrecv::decodeRC5(decode_results*)':
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:560:16: error: 'volatile struct irparams_t' has no member named 'rawlen'; did you mean 'rawbuf'?
   if (irparams.rawlen < MIN_RC5_SAMPLES + 2) {

                ^~~~~~
                rawbuf
/home/XXXXXX/Arduino/libraries/IRremote/IRremote.cpp:571:37: error: 'volatile struct irparams_t' has no member named 'rawlen'; did you mean 'rawbuf'?
   for (nbits = 0; offset < irparams.rawlen; nbits++) {

                                     ^~~~~~
                                     rawbuf
Bibliothek IRremote im Ordner: /home/XXXXXX/Arduino/libraries/IRremote (legacy) wird verwendet
exit status 1
Fehler beim Kompilieren für das Board ATtiny25/45/85.
Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
11.12.2019, 16:39
Beitrag #37
RE: Programm läuft auf UNO aber nicht auf ATTINY85
Damit habe ich nun überhaupt keine Probleme.
Hier gehören übrigens 2 // hin:
Code:
/IRremote by shirriff v2.2.3

Gruß Tommy

"Wer den schnellen Erfolg sucht, sollte nicht programmieren, sondern Holz hacken." (Quelle unbekannt)
Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
11.12.2019, 16:52
Beitrag #38
RE: Programm läuft auf UNO aber nicht auf ATTINY85
Ich habe nochmal ein paar Versuche unterneommen

Zuerst habe ich einen neuen ATtiny85 hergenommen. Die kamen ja im 5er Pack.

Dann habe ich die von mir ursprünglich genutzte IR-Bibliothek wieder eingebunden.

Bootloader 1 MHz geflasht (und vorher natürlich auch 1 MHz Botloader geschrieben). Die LED geht beim Einschalten an. Es gibt keine Reaktion auf die IR-Signale.

Bootloader 8 MHZ geflasht (und vorher natürlich auch 8 MHz Botloader geschrieben). Die LED geht beim Einschalten an. Das Programm reagiert auf die Signale "EIN" und "AUS". Weder das blinken mit "delay" noch das blinken mit "millis()" funktioniert richtig. Manchmal blinkt die LED einmal auf, und dann reagiert der ATtiny auf nichts mehr.

Bootloader 16 MHz geflasht (und vorher natürlich auch 16 MHz Botloader geschrieben). Die LED geht beim Einschalten an. Das Programm reagiert auf alle 3 Befehle der Fernbedienung. Blinken mit "millis()" funktioniert gar nicht. Blinken mt "delay()" ist viel zu schnell.

Meine Erkenntnis: Das Programm ist eigentlich okay. Aber irgendwas mache ich beim Flashen des Bootloader falsch. Nur was.

Daraufhin habe ich einen minimalen Sketch ausprobiert:
Code:
int LED1 = 0;                 //ATTINY 0 / UNO 5 / Nano D9 (9)
int LED2 = 1;                 //ATTINY 1 / UNO 6 / Nano D5 (5)
int RECV_PIN = 2;             //ATTINY 2 / UNO 8 / Nano D6 (6)

void setup()
{
  pinMode(LED1, OUTPUT);
  pinMode(LED2, OUTPUT);
}

void loop() {  
  analogWrite(LED1,120);
  delay(2000);
  analogWrite(LED1, 255);
  delay(2000);
  }

Mit 1MHz, 8MHz und auch mit 16MHz sauberes blinken mit ca. 2Sekunden Hell/Dunkel)

Also Bootloader flashen doch erfolgreich. Und PWM funktioniert auch.

Nächster Versuch mit 8MHz:
Code:
int LED1 = 0;                 //ATTINY 0 / UNO 5 / Nano D9 (9)
int LED2 = 1;                 //ATTINY 1 / UNO 6 / Nano D5 (5)
int RECV_PIN = 2;             //ATTINY 2 / UNO 8 / Nano D6 (6)

unsigned long prevMillis = 0;
unsigned long intervall = 0;

int zufall;

void setup()
{
  pinMode(LED1, OUTPUT);
  pinMode(LED2, OUTPUT);
}

void loop() {  
if(millis() - prevMillis > intervall){            
      prevMillis = millis();  
      intervall = random(75, 100);                    //zufällige Pausenzeit zwischen den Änderungen der Helligkeit
      zufall = random(50, 255);                       //zufällige Helligkeit
      analogWrite(LED1, zufall);
      analogWrite(LED2, zufall);    
      //Serial.println("flackern");      
    }
  }

Auch das funktioniert korrekt.

Weiter im Text: Wieder mit 8 MHz
Code:
#include <IRremote.h>         //IRremote by shirriff v2.2.3

int LED1 = 0;                 //ATTINY 0 / UNO 5 / Nano D9 (9)
int LED2 = 1;                 //ATTINY 1 / UNO 6 / Nano D5 (5)
int RECV_PIN = 2;             //ATTINY 2 / UNO 8 / Nano D6 (6)

IRrecv irrecv(RECV_PIN);
decode_results results;

unsigned long IRSignal;

unsigned long prevMillis = 0;
unsigned long intervall = 0;

int zufall;

void setup()
{
  //Serial.begin(9600);
  irrecv.enableIRIn();                                // Start the receiver
  pinMode(LED1, OUTPUT);
  pinMode(LED2, OUTPUT);
  pinMode(RECV_PIN, INPUT);                           // ob das Nötig ist?
  digitalWrite(LED1, HIGH);                           // LED beim Einschalten der Spannung einschalten
  digitalWrite(LED2, HIGH);                           // LED beim Einschalten der Spannung einschalten  
}

void loop() {  
  if(irrecv.decode(&results))
  {
   IRSignal = (results.value);
   irrecv.resume();                                   // Receive the next value
  }

switch (IRSignal) {
  case 547631446:                                     //einfacher Tastendruck auf "0" für AUS
      digitalWrite(LED1, LOW);
      digitalWrite(LED2, LOW);
      //Serial.println("aus");
    break;
  case 1229380719:                                    //einfacher Tastendruck auf "1" für Dauerleuchten  
      digitalWrite(LED1, HIGH);
      digitalWrite(LED2, HIGH);
      //Serial.println("ein");
    break;
  case 2382528827:                                    //doppelter Tastendruck auf "1" für flackern    
  analogWrite(LED1,120);
  }
}

Reaktion auf einfachen Tastendruck "1" sowie "0" mehrfach und problemlos. Bei doppeltem Tastendruck auf "1" geht die LED entweder kurz an und dann aus oder direkt aus. Danach hängt der ATtiny85 und lässt sich nur noch durch wegnehmen der Versorgungsspannung zurücksetzen.

Kann es sein, das ich versuche mehr Timer im Programm zu nutzen, als der ATtiny85 zur Verfügung stellt? Denn es funktionieren PWM, delay() und millis() und auch das Auswerten der IR-Signale. Nur zusammen klappt es nicht Huh
Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
11.12.2019, 16:54
Beitrag #39
RE: Programm läuft auf UNO aber nicht auf ATTINY85
(11.12.2019 16:39)Tommy56 schrieb:  Hier gehören übrigens 2 // hin:
Code:
/IRremote by shirriff v2.2.3

Gruß Tommy

Danke für den Hinweis, das hatte ich nachher auch gesehen und korrigiert
Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
11.12.2019, 16:59
Beitrag #40
RE: Programm läuft auf UNO aber nicht auf ATTINY85
Ich habe mir jetzt mal deinen Sketch mit der von mir verlinkten Library vorgenommen und siehe da, er kompiliert nicht.
Dann habe ich meine bisher immer funktionierende Sketche für den ATtiny kompilert, funktioniert auch nicht mehr. Ratlos ? ? ?

Dann gegoogelt und eine neuere Lib gefunden. Diese Lib

Soll für alle funktionieren und kompiliert. Dein Sketch und meiner kompilieren fehlerfrei.

Gruß Dieter

I2C = weniger ist mehr: weniger Kabel, mehr Probleme. Cool
Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
Antwort schreiben 


Möglicherweise verwandte Themen...
Thema: Verfasser Antworten: Ansichten: Letzter Beitrag
  Menu funktioniert ohne Serial.println nicht GSA1150 7 121 Gestern 18:26
Letzter Beitrag: Tommy56
  Morse Programm Didi_0 12 357 Gestern 03:57
Letzter Beitrag: Chopp
  Brauche Hilfe, Was Stimmt an meinem Sketch nicht Andi-1090 12 353 20.03.2020 10:04
Letzter Beitrag: hotsystems
  Hochladen eines Sketches funktioniert nicht otti123 24 895 29.02.2020 18:25
Letzter Beitrag: MicroBahner
  int variable wird nicht in Schleife übertragen ha0248 8 450 11.02.2020 15:25
Letzter Beitrag: ha0248
  MobaTools Library: neue Version 2.0 läuft auch auf ESP8266 MicroBahner 7 622 07.02.2020 11:30
Letzter Beitrag: AnjinSan
  Led will nicht bergfrei 2 1.241 23.01.2020 13:27
Letzter Beitrag: hotsystems
  ATTiny85 sleep time hYtas 7 405 22.01.2020 15:26
Letzter Beitrag: hYtas
  Mal geht das kompilieren mal nicht ???? MarkZero0815 12 837 06.01.2020 10:34
Letzter Beitrag: Tommy56
  AT90CAN Interrupt wird nicht ausgelöst slsb02 5 568 19.11.2019 15:04
Letzter Beitrag: slsb02

Gehe zu:


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste