Guten Tag zusammen,
Ich muss in mein script die Libray ShiftPWM.h benutzen, aber ich benutze einen NodeMCU und wenn ich es compiliere dann bekomme ich diesen Fehler Meldungen.
In file included from ForASLOnlyLightSensor.ino:5:0:
/home/andre/Arduino sketchbook/libraries/ShiftPWM-master/ShiftPWM.h: In function 'void ShiftPWM_handleInterrupt()':
/home/andre/Arduino sketchbook/libraries/ShiftPWM-master/ShiftPWM.h:110:39: error: 'port_to_output_PGM_ct' was not declared in this scope
volatile uint8_t * const latchPort = port_to_output_PGM_ct[digital_pin_to_port_PGM_ct[ShiftPWM_latchPin]];
^
/home/andre/Arduino sketchbook/libraries/ShiftPWM-master/ShiftPWM.h:110:61: error: 'digital_pin_to_port_PGM_ct' was not declared in this scope
volatile uint8_t * const latchPort = port_to_output_PGM_ct[digital_pin_to_port_PGM_ct[ShiftPWM_latchPin]];
^
/home/andre/Arduino sketchbook/libraries/ShiftPWM-master/ShiftPWM.h:111:28: error: 'digital_pin_to_bit_PGM_ct' was not declared in this scope
const uint8_t latchBit = digital_pin_to_bit_PGM_ct[ShiftPWM_latchPin];
^
/home/andre/Arduino sketchbook/libraries/ShiftPWM-master/ShiftPWM.h: At global scope:
/home/andre/Arduino sketchbook/libraries/ShiftPWM-master/ShiftPWM.h:195:5: error: expected constructor, destructor, or type conversion before '(' token
ISR(TIMER1_COMPA_vect) {
^
Fehler beim Kompilieren.
Habe mal die Datei an geguckt und verstehe dar aus dass es nicht mit eine NodeMCU reden last.
Kann ich diese Datei anpassen so dass es klappt mit eine NodeMCU und wie mach ich dass.
pins_arduino_compile_time.h (9.78 KB)
ShiftPWM.h (8.51 KB)