Pustaka Taratsa
Arduino: Ethernet UDP Receive Data Switch LED

Arduino: Ethernet UDP Receive Data Switch LED

Penulis: Onno Widodo Purbo

Code #include #include #include const int ledPin = 4; // the pin that the LED is attached to // Enter a MAC address and IP address for your controller below. // The IP address will be dependent on your local network: byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; IPAddress ip(192, 168, 0, 3); unsigned int localPort = 8888; // local port to listen on //