HB-OU-MP3-LED Sketch lässt sich nicht kompilieren

Entwicklung und Bau von Hardware aller Art, die im HM-Umfeld eingesetzt werden kann

Moderator: Co-Administratoren

Stef
Beiträge: 8
Registriert: 17.01.2020, 09:45
Hat sich bedankt: 5 Mal

HB-OU-MP3-LED Sketch lässt sich nicht kompilieren

Beitrag von Stef » 04.02.2020, 07:56

Hallo,

leider scheitere ich mit meinem ersten Versuch eines Nachbaus bereits an der Software. Ich habe (hoffentlich) alle notwendigen Bibliotheken eingesammelt. Wenn ich nun den Sketch kompilieren möchte kommt die folgende lange Fehlermeldung. Ich habe die neuste Arduino Software installiert und die Master AskSinPP ist auch auf dem aktuellen Stand (liegt hier evtl schon das Problem)?
Die Meldungen klingen nach einem Problem bei der Reihenfolge, aber ich wüsste gerade nicht wie ich diese ändern könnte. :?:

Folgend die ganze Fehlermeldung. Für Hilfe wäre ich sehr dankbar!

Code: Alles auswählen

In file included from C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Activity.h:11:0,

                 from C:\Users\Stefan\Documents\Homematic\Eigenbau\HB-OU-MP3-LED\HB-OU-MP3-LED.ino:3:

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h:158:76: error: 'ArduinoPins' does not name a type; did you mean 'Arduino_h'?

 template <uint8_t CS,uint8_t MOSI,uint8_t MISO,uint8_t SCLK, class PINTYPE=ArduinoPins>

                                                                            ^~~~~~~~~~~

                                                                            Arduino_h

In file included from C:\Users\Stefan\Documents\Homematic\Eigenbau\HB-OU-MP3-LED\HB-OU-MP3-LED.ino:31:0:

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/IButton.h:165:3: error: 'OneWire' does not name a type

   OneWire   ow;

   ^~~~~~~

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/IButton.h: In constructor 'as::IButtonScanner<IButtonDev, IButtonChannel, READER_PIN, LED_GREEN, LED_RED>::IButtonScanner(IButtonDev&)':

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/IButton.h:170:62: error: class 'as::IButtonScanner<IButtonDev, IButtonChannel, READER_PIN, LED_GREEN, LED_RED>' does not have any field named 'ow'

   IButtonScanner (IButtonDev& d) : Alarm(millis2ticks(500)), ow(READER_PIN), dev(d), cnt(0) {

                                                              ^~

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/IButton.h: In member function 'bool as::IButtonScanner<IButtonDev, IButtonChannel, READER_PIN, LED_GREEN, LED_RED>::scan(uint8_t*)':

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/IButton.h:206:5: error: 'ow' was not declared in this scope

     ow.reset_search();

     ^~

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/IButton.h:206:5: note: suggested alternative: 'pow'

     ow.reset_search();

     ^~

     pow

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/IButton.h:207:38: error: 'OneWire' has not been declared

     if ( ow.search(addr) == false || OneWire::crc8(addr, 7) != addr[7] ) {

                                      ^~~~~~~

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/IButton.h: In member function 'void as::IButtonScanner<IButtonDev, IButtonChannel, READER_PIN, LED_GREEN, LED_RED>::scanMulti()':

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/IButton.h:242:5: error: 'ow' was not declared in this scope

     ow.reset_search();

     ^~

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/IButton.h:242:5: note: suggested alternative: 'pow'

     ow.reset_search();

     ^~

     pow

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/IButton.h:244:11: error: 'OneWire' has not been declared

       if( OneWire::crc8(addr,7) == addr[7] ) {

           ^~~~~~~

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/IButton.h: In member function 'bool as::IButtonScanner<IButtonDev, IButtonChannel, READER_PIN, LED_GREEN, LED_RED>::learn(IButtonChannel*)':

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/IButton.h:267:5: error: 'ow' was not declared in this scope

     ow.reset_search();

     ^~

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/IButton.h:267:5: note: suggested alternative: 'pow'

     ow.reset_search();

     ^~

     pow

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/IButton.h:269:11: error: 'OneWire' has not been declared

       if( OneWire::crc8(addr,7) == addr[7] ) {

           ^~~~~~~

In file included from C:\Users\Stefan\Documents\Homematic\Eigenbau\HB-OU-MP3-LED\HB-OU-MP3-LED.ino:44:0:

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/RFID.h: At global scope:

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/RFID.h:262:43: error: 'MFRC522' has not been declared

 template <class RFIDDev,class RFIDChannel,MFRC522& m,int LED_GREEN,int LED_RED>

                                           ^~~~~~~

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/RFID.h:263:7: error: no default argument for 'LED_GREEN'

 class RFIDScanner : public Alarm {

       ^~~~~~~~~~~

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/RFID.h:263:7: error: no default argument for 'LED_RED'

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/RFID.h: In member function 'bool as::RFIDScanner<RFIDDev, RFIDChannel, <declaration error>, LED_GREEN, LED_RED>::getRfidAddress(uint8_t*)':

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/RFID.h:333:10: error: 'm' was not declared in this scope

     if (!m.PICC_IsNewCardPresent())

          ^

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/RFID.h:336:10: error: 'm' was not declared in this scope

     if (!m.PICC_ReadCardSerial()) return false;

          ^

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/RFID.h:338:17: error: 'm' was not declared in this scope

     memcpy(addr,m.uid.uidByte,m.uid.size);

                 ^

In file included from C:\Users\Stefan\Documents\Homematic\Eigenbau\HB-OU-MP3-LED\HB-OU-MP3-LED.ino:68:0:

C:\Users\Stefan\Documents\Arduino\libraries\FastLED/FastLED.h: At global scope:

C:\Users\Stefan\Documents\Arduino\libraries\FastLED/FastLED.h:14:21: note: #pragma message: FastLED version 3.003.003

 #    pragma message "FastLED version 3.003.003"

                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~

HB-OU-MP3-LED:115:30: error: template argument 5 is invalid

 typedef AvrSPI<10, 11, 12, 13> RadioSPI;

                              ^

In file included from C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Activity.h:11:0,

                 from C:\Users\Stefan\Documents\Homematic\Eigenbau\HB-OU-MP3-LED\HB-OU-MP3-LED.ino:3:

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h: In instantiation of 'void as::CC1101<SPIType>::initReg(uint8_t, uint8_t, uint8_t) [with SPIType = int; uint8_t = unsigned char]':

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/AskSinPP.h:199:9:   required from 'void as::AskSin<StatusLed, Battery, Radio, Buzzer>::config(const as::StorageConfig&) [with StatusLed = as::StatusLed<4>; Battery = as::NoBattery; Radio = as::Radio<int, 2>; Buzzer = as::NoBuzzer]'

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/MultiChannelDevice.h:121:5:   required from 'bool as::ChannelDevice<HalType, ChannelType, ChannelCount, List0Type>::init(HalType&) [with HalType = as::AskSin<as::StatusLed<4>, as::NoBattery, as::Radio<int, 2> >; ChannelType = as::VirtBaseChannel<as::AskSin<as::StatusLed<4>, as::NoBattery, as::Radio<int, 2> >, OUList0>; int ChannelCount = 2; List0Type = OUList0]'

C:\Users\Stefan\Documents\Homematic\Eigenbau\HB-OU-MP3-LED\HB-OU-MP3-LED.ino:588:16:   required from here

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h:531:9: error: request for member 'writeReg' in '((as::CC1101<int>*)this)->as::CC1101<int>::spi', which is of non-class type 'int'

     spi.writeReg(regAddr, val);

     ~~~~^~~~~~~~

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h:532:28: error: request for member 'readReg' in '((as::CC1101<int>*)this)->as::CC1101<int>::spi', which is of non-class type 'int'

     uint8_t val_read = spi.readReg(regAddr, CC1101_CONFIG);

                        ~~~~^~~~~~~

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h: In instantiation of 'void as::CC1101<SPIType>::init() [with SPIType = int]':

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h:727:18:   required from 'void as::Radio<SPIType, GDO0, SENDDELAY, HWRADIO>::init() [with SPIType = int; unsigned char GDO0 = 2; int SENDDELAY = 100; HWRADIO = as::CC1101<int>]'

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/AskSinPP.h:176:5:   required from 'void as::AskSin<StatusLed, Battery, Radio, Buzzer>::init(const as::HMID&) [with StatusLed = as::StatusLed<4>; Battery = as::NoBattery; Radio = as::Radio<int, 2>; Buzzer = as::NoBuzzer]'

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/MultiChannelDevice.h:120:5:   required from 'bool as::ChannelDevice<HalType, ChannelType, ChannelCount, List0Type>::init(HalType&) [with HalType = as::AskSin<as::StatusLed<4>, as::NoBattery, as::Radio<int, 2> >; ChannelType = as::VirtBaseChannel<as::AskSin<as::StatusLed<4>, as::NoBattery, as::Radio<int, 2> >, OUList0>; int ChannelCount = 2; List0Type = OUList0]'

C:\Users\Stefan\Documents\Homematic\Eigenbau\HB-OU-MP3-LED\HB-OU-MP3-LED.ino:588:16:   required from here

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h:445:9: error: request for member 'init' in '((as::CC1101<int>*)this)->as::CC1101<int>::spi', which is of non-class type 'int'

     spi.init();                 // init the hardware to get access to the RF modul

     ~~~~^~~~

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h:519:43: error: request for member 'readReg' in '((as::CC1101<int>*)this)->as::CC1101<int>::spi', which is of non-class type 'int'

     DPRINT(F("CC Version: ")); DHEXLN(spi.readReg(CC1101_VERSION, CC1101_STATUS));

                                       ~~~~^~~~~~~

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h:521:9: error: request for member 'strobe' in '((as::CC1101<int>*)this)->as::CC1101<int>::spi', which is of non-class type 'int'

     spi.strobe(CC1101_SCAL);                                // calibrate frequency synthesizer and turn it off

     ~~~~^~~~~~

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h: In instantiation of 'uint8_t as::CC1101<SPIType>::rcvData(uint8_t*, uint8_t) [with SPIType = int; uint8_t = unsigned char]':

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h:781:13:   required from 'uint8_t as::Radio<SPIType, GDO0, SENDDELAY, HWRADIO>::read(as::Message&) [with SPIType = int; unsigned char GDO0 = 2; int SENDDELAY = 100; HWRADIO = as::CC1101<int>; uint8_t = unsigned char]'

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Device.h:264:13:   required from 'bool as::Device<HalType, List0Type>::pollRadio() [with HalType = as::AskSin<as::StatusLed<4>, as::NoBattery, as::Radio<int, 2> >; List0Type = OUList0]'

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/MultiChannelDevice.h:174:40:   required from 'bool as::ChannelDevice<HalType, ChannelType, ChannelCount, List0Type>::pollRadio() [with HalType = as::AskSin<as::StatusLed<4>, as::NoBattery, as::Radio<int, 2> >; ChannelType = as::VirtBaseChannel<as::AskSin<as::StatusLed<4>, as::NoBattery, as::Radio<int, 2> >, OUList0>; int ChannelCount = 2; List0Type = OUList0]'

C:\Users\Stefan\Documents\Homematic\Eigenbau\HB-OU-MP3-LED\HB-OU-MP3-LED.ino:604:30:   required from here

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h:615:29: error: request for member 'readReg' in '((as::CC1101<int>*)this)->as::CC1101<int>::spi', which is of non-class type 'int'

     uint8_t fifoBytes = spi.readReg(CC1101_RXBYTES, CC1101_STATUS);             // how many bytes are in the buffer

                         ~~~~^~~~~~~

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h:619:25: error: request for member 'readReg' in '((as::CC1101<int>*)this)->as::CC1101<int>::spi', which is of non-class type 'int'

       packetBytes = spi.readReg(CC1101_RXFIFO, CC1101_CONFIG); // read packet length

                     ~~~~^~~~~~~

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h:623:13: error: request for member 'readBurst' in '((as::CC1101<int>*)this)->as::CC1101<int>::spi', which is of non-class type 'int'

         spi.readBurst(buf, CC1101_RXFIFO, packetBytes);          // read data packet

         ~~~~^~~~~~~~~

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h:624:27: error: request for member 'readReg' in '((as::CC1101<int>*)this)->as::CC1101<int>::spi', which is of non-class type 'int'

         calculateRSSI(spi.readReg(CC1101_RXFIFO, CC1101_CONFIG)); // read RSSI from RXFIFO

                       ~~~~^~~~~~~

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h:625:27: error: request for member 'readReg' in '((as::CC1101<int>*)this)->as::CC1101<int>::spi', which is of non-class type 'int'

         uint8_t val = spi.readReg(CC1101_RXFIFO, CC1101_CONFIG); // read LQI and CRC_OK

                       ~~~~^~~~~~~

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h:641:9: error: request for member 'strobe' in '((as::CC1101<int>*)this)->as::CC1101<int>::spi', which is of non-class type 'int'

     spi.strobe(CC1101_SFRX);

     ~~~~^~~~~~

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h:644:9: error: request for member 'strobe' in '((as::CC1101<int>*)this)->as::CC1101<int>::spi', which is of non-class type 'int'

     spi.strobe(CC1101_SRX);

     ~~~~^~~~~~

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h: In instantiation of 'void as::CC1101<SPIType>::wakeup(bool) [with SPIType = int]':

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h:739:22:   required from 'void as::Radio<SPIType, GDO0, SENDDELAY, HWRADIO>::wakeup(bool) [with SPIType = int; unsigned char GDO0 = 2; int SENDDELAY = 100; HWRADIO = as::CC1101<int>]'

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/AskSinPP.h:227:5:   required from 'void as::AskSin<StatusLed, Battery, Radio, Buzzer>::wakeup() [with StatusLed = as::StatusLed<4>; Battery = as::NoBattery; Radio = as::Radio<int, 2>; Buzzer = as::NoBuzzer]'

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Activity.h:187:7:   required from 'void as::Activity::savePower(Hal&) [with Saver = as::Idle<>; Hal = as::AskSin<as::StatusLed<4>, as::NoBattery, as::Radio<int, 2> >]'

C:\Users\Stefan\Documents\Homematic\Eigenbau\HB-OU-MP3-LED\HB-OU-MP3-LED.ino:606:39:   required from here

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h:402:9: error: request for member 'ping' in '((as::CC1101<int>*)this)->as::CC1101<int>::spi', which is of non-class type 'int'

     spi.ping();

     ~~~~^~~~

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h:411:9: error: request for member 'strobe' in '((as::CC1101<int>*)this)->as::CC1101<int>::spi', which is of non-class type 'int'

     spi.strobe(CC1101_SRX);

     ~~~~^~~~~~

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h: In instantiation of 'uint8_t as::CC1101<SPIType>::sndData(uint8_t*, uint8_t, uint8_t) [with SPIType = int; uint8_t = unsigned char]':

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h:846:38:   required from 'uint8_t as::Radio<SPIType, GDO0, SENDDELAY, HWRADIO>::sndData(uint8_t*, uint8_t, uint8_t) [with SPIType = int; unsigned char GDO0 = 2; int SENDDELAY = 100; HWRADIO = as::CC1101<int>; uint8_t = unsigned char]'

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h:817:19:   required from 'bool as::Radio<SPIType, GDO0, SENDDELAY, HWRADIO>::write(const as::Message&, uint8_t) [with SPIType = int; unsigned char GDO0 = 2; int SENDDELAY = 100; HWRADIO = as::CC1101<int>; uint8_t = unsigned char]'

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Device.h:300:14:   required from 'bool as::Device<HalType, List0Type>::send(as::Message&) [with HalType = as::AskSin<as::StatusLed<4>, as::NoBattery, as::Radio<int, 2> >; List0Type = OUList0]'

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Device.h:289:16:   required from 'bool as::Device<HalType, List0Type>::send(as::Message&, const as::HMID&) [with HalType = as::AskSin<as::StatusLed<4>, as::NoBattery, as::Radio<int, 2> >; List0Type = OUList0]'

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Device.h:392:9:   required from 'void as::Device<HalType, List0Type>::sendInfoActuatorStatus(const as::HMID&, uint8_t, ChannelType&, bool) [with ChannelType = as::VirtBaseChannel<as::AskSin<as::StatusLed<4>, as::NoBattery, as::Radio<int, 2> >, OUList0>; HalType = as::AskSin<as::StatusLed<4>, as::NoBattery, as::Radio<int, 2> >; List0Type = OUList0; uint8_t = unsigned char]'

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/MultiChannelDevice.h:178:9:   required from 'bool as::ChannelDevice<HalType, ChannelType, ChannelCount, List0Type>::pollRadio() [with HalType = as::AskSin<as::StatusLed<4>, as::NoBattery, as::Radio<int, 2> >; ChannelType = as::VirtBaseChannel<as::AskSin<as::StatusLed<4>, as::NoBattery, as::Radio<int, 2> >, OUList0>; int ChannelCount = 2; List0Type = OUList0]'

C:\Users\Stefan\Documents\Homematic\Eigenbau\HB-OU-MP3-LED\HB-OU-MP3-LED.ino:604:30:   required from here

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h:574:9: error: request for member 'strobe' in '((as::CC1101<int>*)this)->as::CC1101<int>::spi', which is of non-class type 'int'

     spi.strobe(CC1101_SIDLE);  // go to idle mode

     ~~~~^~~~~~

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h:575:9: error: request for member 'strobe' in '((as::CC1101<int>*)this)->as::CC1101<int>::spi', which is of non-class type 'int'

     spi.strobe(CC1101_SFTX );  // flush TX buffer

     ~~~~^~~~~~

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h:579:11: error: request for member 'strobe' in '((as::CC1101<int>*)this)->as::CC1101<int>::spi', which is of non-class type 'int'

       spi.strobe(CC1101_STX);

       ~~~~^~~~~~

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h:583:13: error: request for member 'strobe' in '((as::CC1101<int>*)this)->as::CC1101<int>::spi', which is of non-class type 'int'

         spi.strobe(CC1101_SIDLE );

         ~~~~^~~~~~

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h:584:13: error: request for member 'strobe' in '((as::CC1101<int>*)this)->as::CC1101<int>::spi', which is of non-class type 'int'

         spi.strobe(CC1101_SFTX  );

         ~~~~^~~~~~

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h:585:13: error: request for member 'strobe' in '((as::CC1101<int>*)this)->as::CC1101<int>::spi', which is of non-class type 'int'

         spi.strobe(CC1101_SNOP );

         ~~~~^~~~~~

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h:587:18: error: request for member 'strobe' in '((as::CC1101<int>*)this)->as::CC1101<int>::spi', which is of non-class type 'int'

         do { spi.strobe(CC1101_SRX);

              ~~~~^~~~~~

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h:588:22: error: request for member 'readReg' in '((as::CC1101<int>*)this)->as::CC1101<int>::spi', which is of non-class type 'int'

         } while (spi.readReg(CC1101_MARCSTATE, CC1101_STATUS) != MARCSTATE_RX);

                  ~~~~^~~~~~~

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h:592:15: error: request for member 'readReg' in '((as::CC1101<int>*)this)->as::CC1101<int>::spi', which is of non-class type 'int'

     while(spi.readReg(CC1101_MARCSTATE, CC1101_STATUS) != MARCSTATE_TX);

           ~~~~^~~~~~~

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h:599:9: error: request for member 'writeReg' in '((as::CC1101<int>*)this)->as::CC1101<int>::spi', which is of non-class type 'int'

     spi.writeReg(CC1101_TXFIFO, size);

     ~~~~^~~~~~~~

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h:600:9: error: request for member 'writeBurst' in '((as::CC1101<int>*)this)->as::CC1101<int>::spi', which is of non-class type 'int'

     spi.writeBurst(CC1101_TXFIFO, buf, size);           // write in TX FIFO

     ~~~~^~~~~~~~~~

C:\Users\Stefan\Documents\Arduino\libraries\AskSinPP-master/Radio.h:603:15: error: request for member 'readReg' in '((as::CC1101<int>*)this)->as::CC1101<int>::spi', which is of non-class type 'int'

       if( spi.readReg(CC1101_MARCSTATE, CC1101_STATUS) == MARCSTATE_RX)

           ~~~~^~~~~~~

exit status 1
template argument 5 is invalid

Gruß
Stefan

jp112sdl
Beiträge: 6162
Registriert: 20.11.2016, 20:01
Hat sich bedankt: 283 Mal
Danksagung erhalten: 572 Mal
Kontaktdaten:

Re: HB-OU-MP3-LED Sketch lässt sich nicht kompilieren

Beitrag von jp112sdl » 04.02.2020, 08:22

Kam doch noch was an Meldungen davor/danach?
Richtiges Board ist eingestellt (Pro Mini)?

VG,
Jérôme ☕️

---
Support for my Homebrew-Devices: Download JP-HB-Devices Addon

Stef
Beiträge: 8
Registriert: 17.01.2020, 09:45
Hat sich bedankt: 5 Mal

Re: HB-OU-MP3-LED Sketch lässt sich nicht kompilieren

Beitrag von Stef » 04.02.2020, 08:26

Nein, das ist die komplette Ausgabe (werde es heute Abend aber noch einmal prüfen) und ich hatte das richtige Board (pro mini, 3,3V, 8MHz) gewählt.

jp112sdl
Beiträge: 6162
Registriert: 20.11.2016, 20:01
Hat sich bedankt: 283 Mal
Danksagung erhalten: 572 Mal
Kontaktdaten:

Re: HB-OU-MP3-LED Sketch lässt sich nicht kompilieren

Beitrag von jp112sdl » 04.02.2020, 08:27

Hmm. 'ArduinoPins' kommt aus der Pins.h
Hab grad noch mal gegengecheckt, bei mir kompiliert es mit der AskSinPP aus dem master

VG,
Jérôme ☕️

---
Support for my Homebrew-Devices: Download JP-HB-Devices Addon

Stef
Beiträge: 8
Registriert: 17.01.2020, 09:45
Hat sich bedankt: 5 Mal

Re: HB-OU-MP3-LED Sketch lässt sich nicht kompilieren

Beitrag von Stef » 04.02.2020, 08:30

Ich gehe davon aus, dass Pins.h da ist, sonst wäre die Meldung gekommen.

jp112sdl
Beiträge: 6162
Registriert: 20.11.2016, 20:01
Hat sich bedankt: 283 Mal
Danksagung erhalten: 572 Mal
Kontaktdaten:

Re: HB-OU-MP3-LED Sketch lässt sich nicht kompilieren

Beitrag von jp112sdl » 04.02.2020, 08:34

Dann bin ich raus. Mehr fällt auch mir grad nicht ein
Zuletzt geändert von jp112sdl am 04.02.2020, 09:11, insgesamt 1-mal geändert.

VG,
Jérôme ☕️

---
Support for my Homebrew-Devices: Download JP-HB-Devices Addon

Stef
Beiträge: 8
Registriert: 17.01.2020, 09:45
Hat sich bedankt: 5 Mal

Re: HB-OU-MP3-LED Sketch lässt sich nicht kompilieren

Beitrag von Stef » 04.02.2020, 08:49

Beim Vorgehen kann man nicht so viel falsch machen, oder?
Ich hatte mir die AskSinPP-master.zip heruntergeladen und eingebunden. Anschließend habe ich alle fehlenden Bibliotheken eingebunden. Leider ist dies nicht immer eindeutig, wenn man zB nach Low-Power sucht gibt es mehrere passende Bibliotheken. Als dann keine Meldung mehr bzgl. fehlender Bibliothek kam war ich am jetzigen Punkt.
Ich werde heute Abend eine Liste der Ordner aus dem Arduino Verzeichnis posten, vielleicht habe ich ja eine falsche Bibliothek erwischt..

papa
Beiträge: 494
Registriert: 22.05.2018, 10:23
Danksagung erhalten: 46 Mal

Re: HB-OU-MP3-LED Sketch lässt sich nicht kompilieren

Beitrag von papa » 04.02.2020, 08:52

Die richtigen Libraries sind alle im Readme verlinkt.

https://github.com/pa-pa/AskSinPP#requi ... -libraries
Anfragen zur AskSin++ werden nur im Forum beantwortet

Stef
Beiträge: 8
Registriert: 17.01.2020, 09:45
Hat sich bedankt: 5 Mal

Re: HB-OU-MP3-LED Sketch lässt sich nicht kompilieren

Beitrag von Stef » 04.02.2020, 09:36

Danke für den Hinweis, das hatte ich übersehen!

Stef
Beiträge: 8
Registriert: 17.01.2020, 09:45
Hat sich bedankt: 5 Mal

Re: HB-OU-MP3-LED Sketch lässt sich nicht kompilieren

Beitrag von Stef » 04.02.2020, 17:18

Das Problem war (wie nicht so sehr anders zu erwarten) selbst verursacht. Ich hatte dämlicherweise auf Sketch --> Include Library --> und dann auf die Library geklickt, dies hat dann weitere includes hinzugefügt, die mir erst eben aufgefallen sind.

Jetzt gibt es nur noch eine Meldung, da es kompiliert nehme ich an, dass diese Meldung nur noch eine Warnung oder Info ist:

Code: Alles auswählen

In file included from C:\Users\Stefan\Documents\Homematic\Eigenbau\HB-OU-MP3-LED\HB-OU-MP3-LED.ino:16:0:

C:\Users\Stefan\Documents\Arduino\libraries\FastLED/FastLED.h:14:21: note: #pragma message: FastLED version 3.003.003

 #    pragma message "FastLED version 3.003.003"

                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
Sketch uses 29112 bytes (94%) of program storage space. Maximum is 30720 bytes.
Global variables use 1182 bytes (57%) of dynamic memory, leaving 866 bytes for local variables. Maximum is 2048 bytes.


Antworten

Zurück zu „Hardwareentwicklung und Selbstbau von Aktoren und Sensoren“