Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868-A16 - Own Arduino firmware
#8
Probably you have to use Renzo Mischianti's PCF8574 library. Now the problem is the ETH.h library - which one to use? I have installed https://docs.arduino.cc/libraries/ethernet/ in newest version but I see that the esp32 library has its own ETH.h (so I uninstalled my) libraries. It says that constants should be defined, for example:
#ifndef ETH_PHY_TYPE
#define ETH_PHY_TYPE ETH_PHY_LAN8720
#define ETH_PHY_ADDR 0
#define ETH_PHY_MDC 23
#define ETH_PHY_MDIO 18
#define ETH_PHY_POWER -1
#define ETH_CLK_MODE ETH_CLOCK_GPIO0_IN
#endif
The compiler reports as follows:


PHP Code:
C:\Users\mkapski\Documents\Arduino\testy_kicony_v2_demo1\testy_kicony_v2_demo1.inoIn function 'void setup()'C:\Users\mkapski\Documents\Arduino\testy_kicony_v2_demo1\testy_kicony_v2_demo1.ino:288:12errorno matching function for call to 'ETHClass::begin(int, int)' 288 ETH.begin(ETH_PHY_ADDRETH_PHY_POWER);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
In file included from c:\Users\mkapski\Documents\Arduino\libraries\WebServer_WT32_ETH01\src/WebServer_WT32_ETH01.hpp:76from c:\Users\mkapski\Documents\Arduino\libraries\WebServer_WT32_ETH0 1\src/WebServer_WT32_ETH01.h:72from C:\Users\mkapski\Documents\Arduino\testy_kicony_v2_demo1\testy_kicony_v2_demo1.ino:23C:\Users\mkapski\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.7\libraries\Ethernet\src/ETH.h:126:8notecandidate'bool ETHClass::begin(eth_phy_type_t, int32_t, int, int, int, eth_clock_mode_t)' 126 bool begin(eth_phy_type_t typeint32_t phy_addrint mdcint mdioint powereth_clock_mode_t clk_mode);
| ^~~~~ 
C:\Users\mkapski\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.7\libraries\Ethernet\src/ETH.h:126:8notecandidate expects 6 arguments2 provided C:\Users\mkapski\AppData\Local\Arduino15\packages\esp32\hard ware\esp32\3.0.7\libraries\Ethernet\src/ETH.h:129:8notecandidate'bool ETHClass::begin(eth_phy_type_t, int32_t, int, int, int, SPIClass&, uint8_t)' 129 bool begin(eth_phy_type_t typeint32_t phy_addrint csint irqint rstSPIClass &spiuint8_t spi_freq_mhz ETH_PHY_SPI_FREQ_MHZ);
| ^~~~~ 
C:\Users\mkapski\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.7\libraries\Ethernet\src/ETH.h:129:8notecandidate expects 7 arguments2 provided C:\Users\mkapski\AppData\Local\Arduino15\packages\esp32\hard ware\esp32\3.0.7\libraries\Ethernet\src/ETH.h:131:8notecandidate'bool ETHClass::begin(eth_phy_type_t, int32_t, int, int, int, spi_host_device_t, int, int, int, uint8_t)' 131 bool begin( | ^~~~~ C:\Users\mkapski\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.7\libraries\Ethernet\src/ETH.h:131:8notecandidate expects 10 arguments2 provided C:\Users\mkapski\AppData\Local\Arduino15\packagesesp32\hardware\esp32\3.0.7\libraries\Ethernet\src/ETH.h:136:8notecandidate'bool ETHClass::begin()' 136 bool begin() { | ^~~~~ C:\Users\mkapski\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.7\libraries\Ethernet\src/ETH.h:136:8notecandidate expects 0 arguments2 provided exit status 1 Compilation errorno matching function for call to 'ETHClass::begin(int, int)' 
Reply


Messages In This Thread
KC868-A16 - Own Arduino firmware - by boe666 - 11-13-2024, 04:32 PM
RE: KC868-A16 - Own Arduino firmware - by admin - 11-13-2024, 10:10 PM
RE: KC868-A16 - Own Arduino firmware - by boe666 - 11-14-2024, 10:29 AM
RE: KC868-A16 - Own Arduino firmware - by admin - 11-14-2024, 11:14 AM
RE: KC868-A16 - Own Arduino firmware - by boe666 - 11-14-2024, 11:19 AM
RE: KC868-A16 - Own Arduino firmware - by admin - 11-14-2024, 11:45 AM
RE: KC868-A16 - Own Arduino firmware - by boe666 - 11-14-2024, 12:07 PM
RE: KC868-A16 - Own Arduino firmware - by boe666 - 11-14-2024, 12:18 PM
RE: KC868-A16 - Own Arduino firmware - by admin - 11-14-2024, 12:36 PM
RE: KC868-A16 - Own Arduino firmware - by boe666 - 11-14-2024, 01:03 PM
RE: KC868-A16 - Own Arduino firmware - by boe666 - 11-14-2024, 07:05 PM
RE: KC868-A16 - Own Arduino firmware - by admin - 11-14-2024, 10:20 PM
RE: KC868-A16 - Own Arduino firmware - by boe666 - 11-15-2024, 07:43 AM
RE: KC868-A16 - Own Arduino firmware - by boe666 - 11-15-2024, 11:12 PM
RE: KC868-A16 - Own Arduino firmware - by admin - 11-15-2024, 11:30 PM
RE: KC868-A16 - Own Arduino firmware - by boe666 - 11-16-2024, 08:13 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)