Ok so your code must be a bit different because it seems to be almost working, i got rid of two errors for I_CACHE_RAM_ATTR as it wanted just IRAM_ATTR. But i do get it looks like two other errors related to D1 and D2. I am sorry as i am replying from my phone so i dont know how to blockqoute this, again i really appreciate your help.
/config/esphome/rfid-reader.yaml: In lambda function:
/config/esphome/rfid-reader.yaml:43:40: error: ‘D1’ was not declared in this scope; did you mean ‘y1’?
43 | auto wiegand = new WiegandReader(D1 , D2);
| ^~
| y1
/config/esphome/rfid-reader.yaml:43:45: error: ‘D2’ was not declared in this scope
43 | auto wiegand = new WiegandReader(D1 , D2);
| ^~
/config/esphome/rfid-reader.yaml:45:22: error: could not convert ‘{wiegand}’ from ‘’ to ‘std::vectoresphome::sensor::Sensor*’
45 | return {wiegand};
| ^
| |
|
Compiling /data/rfid-reader/.pioenvs/rfid-reader/FrameworkArduino/core_esp8266_non32xfer.cpp.o
Compiling /data/rfid-reader/.pioenvs/rfid-reader/FrameworkArduino/core_esp8266_noniso.cpp.o
Compiling /data/rfid-reader/.pioenvs/rfid-reader/FrameworkArduino/core_esp8266_phy.cpp.o
*** [/data/rfid-reader/.pioenvs/rfid-reader/src/main.cpp.o] Error 1