Guten Abend,
ich versuche leider verzweifelt diesen Sketch zu kompilieren, scheitere aber an ein paar Fehlern. Hat jemand eine Idee?
Code: Alles auswählen
In file included from C:\Arduino\arduino-1.8.5\portable\sketchbook\hm-rgb\sketch_jun08a\sketch_jun08a.ino:10:0:
C:\Arduino\arduino-1.8.5\portable\sketchbook\libraries\EnableInterrupt-0.9.8/EnableInterrupt.h:22:125: note: #pragma message: NOTICE: *** EnableInterrupt library version pre-0.9.6. This is not a problem. Keep calm, and carry on. ***
#pragma message("NOTICE: *** EnableInterrupt library version pre-0.9.6. This is not a problem. Keep calm, and carry on. ***")
^
In file included from C:\Arduino\arduino-1.8.5\portable\sketchbook\hm-rgb\sketch_jun08a\sketch_jun08a.ino:16:0:
C:\Arduino\arduino-1.8.5\portable\sketchbook\libraries\FastLED-master/FastLED.h:14:21: note: #pragma message: FastLED version 3.003.003
# pragma message "FastLED version 3.003.003"
^
sketch_jun08a:61: error: 'DimmerAndRemoteDevice' does not name a type
typedef DimmerAndRemoteDevice<Hal, RGBLEDChannelType, RemoteChannelType, 4, 1, 2, List0> RCLEDDevice;
^
sketch_jun08a:71: error: expected template-name before '<' token
class RGBControl : public DimmerControl<HalType,DimmerType,PWM> {
^
sketch_jun08a:71: error: expected '{' before '<' token
sketch_jun08a:71: error: expected unqualified-id before '<' token
sketch_jun08a:103: error: 'RCLEDDevice' does not name a type
RCLEDDevice sdev(devinfo, 0x20);
^
sketch_jun08a:104: error: 'RCLEDDevice' was not declared in this scope
RGBControl<Hal,RCLEDDevice,DummyPWM> control(sdev);
^
sketch_jun08a:104: error: template argument 2 is invalid
RGBControl<Hal,RCLEDDevice,DummyPWM> control(sdev);
^
sketch_jun08a:104: error: invalid type in declaration before '(' token
RGBControl<Hal,RCLEDDevice,DummyPWM> control(sdev);
^
sketch_jun08a:104: error: 'sdev' was not declared in this scope
RGBControl<Hal,RCLEDDevice,DummyPWM> control(sdev);
^
sketch_jun08a:105: error: 'RCLEDDevice' was not declared in this scope
ConfigButton<RCLEDDevice> cfgBtn(sdev);
^
sketch_jun08a:105: error: template argument 1 is invalid
ConfigButton<RCLEDDevice> cfgBtn(sdev);
^
sketch_jun08a:105: error: invalid type in declaration before '(' token
ConfigButton<RCLEDDevice> cfgBtn(sdev);
^
sketch_jun08a:105: error: 'sdev' was not declared in this scope
ConfigButton<RCLEDDevice> cfgBtn(sdev);
^
C:\Arduino\arduino-1.8.5\portable\sketchbook\hm-rgb\sketch_jun08a\sketch_jun08a.ino: In function 'void setup()':
sketch_jun08a:110: error: request for member 'init' in 'control', which is of non-class type 'int'
control.init(hal,pins);
^
In file included from C:\Arduino\arduino-1.8.5\portable\sketchbook\hm-rgb\sketch_jun08a\sketch_jun08a.ino:17:0:
C:\Arduino\arduino-1.8.5\portable\sketchbook\hm-rgb\sketch_jun08a\sketch_jun08a.ino: In static member function 'static void setup()::__BTN1_PINISRHandler::isr()':
sketch_jun08a:111: error: 'sdev' was not declared in this scope
remoteChannelISR(sdev.remoteChannel(1), BTN1_PIN);
^
C:\Arduino\arduino-1.8.5\portable\sketchbook\libraries\AskSinPP-master/Remote.h:99:24: note: in definition of macro 'remoteChannelISR'
static void isr () { chan.irq(); } \
^
C:\Arduino\arduino-1.8.5\portable\sketchbook\hm-rgb\sketch_jun08a\sketch_jun08a.ino: In function 'void setup()':
sketch_jun08a:111: error: 'sdev' was not declared in this scope
remoteChannelISR(sdev.remoteChannel(1), BTN1_PIN);
^
C:\Arduino\arduino-1.8.5\portable\sketchbook\libraries\AskSinPP-master/Remote.h:101:1: note: in definition of macro 'remoteChannelISR'
chan.button().init(pin); \
^
C:\Arduino\arduino-1.8.5\portable\sketchbook\hm-rgb\sketch_jun08a\sketch_jun08a.ino: In static member function 'static void setup()::__BTN2_PINISRHandler::isr()':
sketch_jun08a:112: error: use of local variable with automatic storage from containing function
remoteChannelISR(sdev.remoteChannel(2), BTN2_PIN);
^
C:\Arduino\arduino-1.8.5\portable\sketchbook\libraries\AskSinPP-master/Remote.h:99:24: note: in definition of macro 'remoteChannelISR'
static void isr () { chan.irq(); } \
^
C:\Arduino\arduino-1.8.5\portable\sketchbook\hm-rgb\sketch_jun08a\sketch_jun08a.ino:111:20: note: '<typeprefixerror>sdev' declared here
remoteChannelISR(sdev.remoteChannel(1), BTN1_PIN);
^
C:\Arduino\arduino-1.8.5\portable\sketchbook\libraries\AskSinPP-master/Remote.h:101:1: note: in definition of macro 'remoteChannelISR'
chan.button().init(pin); \
^
In file included from C:\Arduino\arduino-1.8.5\portable\sketchbook\libraries\AskSinPP-master/AskSinPP.h:42:0,
from C:\Arduino\arduino-1.8.5\portable\sketchbook\hm-rgb\sketch_jun08a\sketch_jun08a.ino:12:
C:\Arduino\arduino-1.8.5\portable\sketchbook\hm-rgb\sketch_jun08a\sketch_jun08a.ino: In static member function 'static void setup()::cfgBtnISRHandler::isr()':
C:\Arduino\arduino-1.8.5\portable\sketchbook\libraries\AskSinPP-master/Button.h:363:28: error: request for member 'irq' in 'cfgBtn', which is of non-class type 'int'
static void isr () { btn.irq(); } \
^
C:\Arduino\arduino-1.8.5\portable\sketchbook\hm-rgb\sketch_jun08a\sketch_jun08a.ino:113:3: note: in expansion of macro 'buttonISR'
buttonISR(cfgBtn, CONFIG_BUTTON_PIN);
^
C:\Arduino\arduino-1.8.5\portable\sketchbook\hm-rgb\sketch_jun08a\sketch_jun08a.ino: In function 'void setup()':
C:\Arduino\arduino-1.8.5\portable\sketchbook\libraries\AskSinPP-master/Button.h:365:5: error: request for member 'init' in 'cfgBtn', which is of non-class type 'int'
btn.init(pin); \
^
C:\Arduino\arduino-1.8.5\portable\sketchbook\hm-rgb\sketch_jun08a\sketch_jun08a.ino:113:3: note: in expansion of macro 'buttonISR'
buttonISR(cfgBtn, CONFIG_BUTTON_PIN);
^
C:\Arduino\arduino-1.8.5\portable\sketchbook\hm-rgb\sketch_jun08a\sketch_jun08a.ino: In function 'void loop()':
sketch_jun08a:119: error: 'sdev' was not declared in this scope
bool poll = sdev.pollRadio();
^
Bibliothek EnableInterrupt-0.9.8 in Version 0.9.8 im Ordner: C:\Arduino\arduino-1.8.5\portable\sketchbook\libraries\EnableInterrupt-0.9.8 wird verwendet
Bibliothek SPI in Version 1.0 im Ordner: C:\Arduino\arduino-1.8.5\hardware\arduino\avr\libraries\SPI wird verwendet
Bibliothek AskSinPP-master in Version 3.1.2 im Ordner: C:\Arduino\arduino-1.8.5\portable\sketchbook\libraries\AskSinPP-master wird verwendet
Bibliothek Low_Power-1.6.0 in Version 1.6 im Ordner: C:\Arduino\arduino-1.8.5\portable\sketchbook\libraries\Low_Power-1.6.0 wird verwendet
Bibliothek FastLED-master in Version 3.3.3 im Ordner: C:\Arduino\arduino-1.8.5\portable\sketchbook\libraries\FastLED-master wird verwendet
exit status 1
'DimmerAndRemoteDevice' does not name a type
Viele Grüße
André