01-02-2024, 09:25 PM
Hello, so have bought an E16P esp32 board, too the file offer from the forum added them to Arduino IDE.
First issue was the <pcf8574.h> had to be in capitals in order to include the library.
Second and current issue am having is, error code: the list is way longer just added the first 2
In file included from C:\Users\nicol\OneDrive\Desktop\RealPushButtons\RealPushButtons.ino:7:
C:\Users\nicol\OneDrive\Desktop\RealPushButtons\DEV_LED.h: In function 'void PCF_WRITE(int, boolean)':
C:\Users\nicol\OneDrive\Desktop\RealPushButtons\DEV_LED.h:59:18: error: cannot convert 'PCF8574' to 'uint8_t' {aka 'unsigned char'}
digitalWrite(pcfOUT_1, mPin - 1, !value); //digitalWrite(ex1, (mPin-1), value);
In file included from C:\Users\nicol\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\cores\esp32/esp32-hal.h:83,
from C:\Users\nicol\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\cores\esp32/Arduino.h:36,
from C:\Users\nicol\AppData\Local\Temp\arduino\sketches\B825BA561FA7215E1D76DE33C6DE7CC9\sketch\RealPushButtons.ino.cpp:1:
C:\Users\nicol\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\cores\esp32/esp32-hal-gpio.h:75:27: note: initializing argument 1 of 'void digitalWrite(uint8_t, uint8_t)'
void digitalWrite(uint8_t pin, uint8_t val);
First issue was the <pcf8574.h> had to be in capitals in order to include the library.
Second and current issue am having is, error code: the list is way longer just added the first 2
In file included from C:\Users\nicol\OneDrive\Desktop\RealPushButtons\RealPushButtons.ino:7:
C:\Users\nicol\OneDrive\Desktop\RealPushButtons\DEV_LED.h: In function 'void PCF_WRITE(int, boolean)':
C:\Users\nicol\OneDrive\Desktop\RealPushButtons\DEV_LED.h:59:18: error: cannot convert 'PCF8574' to 'uint8_t' {aka 'unsigned char'}
digitalWrite(pcfOUT_1, mPin - 1, !value); //digitalWrite(ex1, (mPin-1), value);
In file included from C:\Users\nicol\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\cores\esp32/esp32-hal.h:83,
from C:\Users\nicol\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\cores\esp32/Arduino.h:36,
from C:\Users\nicol\AppData\Local\Temp\arduino\sketches\B825BA561FA7215E1D76DE33C6DE7CC9\sketch\RealPushButtons.ino.cpp:1:
C:\Users\nicol\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\cores\esp32/esp32-hal-gpio.h:75:27: note: initializing argument 1 of 'void digitalWrite(uint8_t, uint8_t)'
void digitalWrite(uint8_t pin, uint8_t val);