CONFIG_ETH_RMII_CLK_OUTPUT_GPIO0=y
esp32-eth-clk-out0-spiram
esp32-eth-clk-out0-spiram
import gpio
import net.ethernet
import esp32.net.ethernet as esp32
main:
power := gpio.Pin --output 4
power.set 1
provider := esp32.EthernetServiceProvider.mac-esp32
--phy-chip=esp32.PHY-CHIP-LAN8720
--phy-address=0
--mac-mdc=gpio.Pin 23
--mac-mdio=gpio.Pin 18
provider.install
network := ethernet.open
try:
// use network
print "if we reach here the network opened"
finally:
network.close
provider.uninstall
power.close
jag flash
esp32-eth-clk-out17-spiram