Hallo liebe Comunity,
eigentlich schreie ich ja nicht sofort nach Hilfe, aber diesmal komme ich einfach nicht weiter.
Ich würde gerne meinen ersten TinyTX mit einem ReedSwitch bauen und scheitere am kompilieren.
Folgende IST Situation :
- ArduinoIDE 1.6.8 auf Win10 64bit frisch installiert (W10 64bit)
- Im Boardmanger die ATTinyCore V1.1.0 von drazzy.com installiert
- Board: ATtinyx4 Series - B.O.D. Disabled - PIN Mapping: Counterclockwise - ATtiny84 - 8 Mhz (internal)
- Programmer: ArduinoISP
- Repo von meigrafd (TinyTX4) von github downgeloaded
- https://github.com/jcw/jeelib downgeloaded und ins libraries Verzeichnis entpackt
- https://code.google.com/archive/p/arduino-tiny/downloads die PinChangeInterrupt-0001.zip ins libraries Verzeichnis entpackt
Wenn ich nun den Sketch "Send_ReedSwitch_Watchdog_JeeLib.ino" öffne und diesen überprüfe kommt folgender Fehler :
In file included from C:\Users\admin\Documents\Arduino\Send_ReedSwitch_Watchdog_JeeLib\Send_ReedSwitch_Watchdog_JeeLib.ino:9:0:
C:\Users\admin\Documents\Arduino\libraries\PinChangeInterrupt/PinChangeInterrupt.h:29:32: fatal error: core_build_options.h: No such file or directory
#include <core_build_options.h>
Über den Bibliotheksverwalter habe ich die Möglichkeit die PinChangeInterrupt auf V1.2.4 upzudaten.
Mache ich das, bekomme ich einen anderen Fehler. Diesmal ist es :
C:\Users\admin\Documents\Arduino\Send_ReedSwitch_Watchdog_JeeLib\Send_ReedSwitch_Watchdog_JeeLib.ino: In function 'void setup()':
Send_ReedSwitch_Watchdog_JeeLib:190: error: 'attachPcInterrupt' was not declared in this scope
attachPcInterrupt(SW_PIN,wakeUp,FALLING); // attach a PinChange Interrupt on the falling edge
^
C:\Users\admin\Documents\Arduino\Send_ReedSwitch_Watchdog_JeeLib\Send_ReedSwitch_Watchdog_JeeLib.ino: In function 'void loop()':
Send_ReedSwitch_Watchdog_JeeLib:240: error: no matching function for call to 'rf12_sendStart(int, uint8_t*, size_t, int)'
rf12_sendStart(GATEWAYID, (uint8_t *)msg, strlen(msg), requestACK);
^
C:\Users\admin\Documents\Arduino\Send_ReedSwitch_Watchdog_JeeLib\Send_ReedSwitch_Watchdog_JeeLib.ino:240:72: note: candidates are:
In file included from C:\Users\admin\Documents\Arduino\libraries\JeeLib/JeeLib.h:18:0,
from C:\Users\admin\Documents\Arduino\Send_ReedSwitch_Watchdog_JeeLib\Send_ReedSwitch_Watchdog_JeeLib.ino:8:
C:\Users\admin\Documents\Arduino\libraries\JeeLib/RF12.h:112:6: note: void rf12_sendStart(uint8_t)
void rf12_sendStart(uint8_t hdr);
^
C:\Users\admin\Documents\Arduino\libraries\JeeLib/RF12.h:112:6: note: candidate expects 1 argument, 4 provided
C:\Users\admin\Documents\Arduino\libraries\JeeLib/RF12.h:114:6: note: void rf12_sendStart(uint8_t, const void*, uint8_t)
void rf12_sendStart(uint8_t hdr, const void* ptr, uint8_t len);
^
C:\Users\admin\Documents\Arduino\libraries\JeeLib/RF12.h:114:6: note: candidate expects 3 arguments, 4 provided
Bibliothek JeeLib im Ordner: C:\Users\admin\Documents\Arduino\libraries\JeeLib (legacy) wird verwendet
Bibliothek PinChangeInterrupt in Version 1.2.4 im Ordner: C:\Users\admin\Documents\Arduino\libraries\PinChangeInterrupt wird verwendet
exit status 1
'attachPcInterrupt' was not declared in this scope
Alles anzeigen
Ich habe noch viele andere Dinge ausprobiert und Probehalber auch mal den Sketch für den DHT22 Sensor zu kompilieren.
Das habe ich irgendwann hinbekommen, aber beim ReedSwitch muss ich leider passen.
Weiß vielleicht jemand einen Rat ?
Vielen Dank !
Feuerpfeil