RP2040 SSM EVM - w5500 DHCP test
RP2040 SSM EVM - w5500 DHCP test
0
Project description
Raspvery Pi Pico(RP2040) 을 이용하여 이더넷 테스트를 하기위한 테스트를 좀더 진행해 보자.우선 W5500 을 이용하여 DHCP로 IP를 할당 받고 SSD1306 OLED에 IP정보를 표시 하는 예제를 작성해 보자. W5500 에서 DHCP로 할당받기 위해서는 초기화시 mac만 설정 해 주면 된다. void setup() { pinMode(25, OUTPUT); Serial.begin(115200); while (!Serial) { ; // wait for serial port to connect. Needed for Leonardo only } Serial.println("W5500 DHCP Test"); // start the Ethernet connection and the server: Ethernet.w5500_cspin = W5500_CS_PIN; // Ethernet.begin(mac, ip); Ethernet.begin(mac); Serial.print("My IP address: "); Serial.println(Ethernet.localIP()); } 코드 수정해여 실행하면 시리얼 포트로 아래와 같이 W5500에서…
Keep reading with a free account
Guests can read 15 projects per visit. Log in or create a free account to read the full description, open the documents and join the comments.