update examples

master
Hideaki Tai 4 years ago
parent 0d4aec1ec8
commit e06539f636

@ -21,7 +21,7 @@ void setup() {
delay(2000); delay(2000);
Ethernet.begin(mac, ip); Ethernet.begin(mac, ip);
artnet.begin(target_ip); artnet.begin();
// artnet.subscribe_net(0); // optionally you can change // artnet.subscribe_net(0); // optionally you can change
// artnet.subscribe_subnet(0); // optionally you can change // artnet.subscribe_subnet(0); // optionally you can change
@ -57,5 +57,5 @@ void loop() {
memset(data, value, size); memset(data, value, size);
artnet.set(universe, data, size); artnet.set(universe, data, size);
artnet.streaming(); // automatically send set data in 40fps artnet.streaming(target_ip); // automatically send set data in 40fps
} }

@ -17,7 +17,7 @@ void setup() {
delay(2000); delay(2000);
Ethernet.begin(mac, ip); Ethernet.begin(mac, ip);
artnet.begin(target_ip); artnet.begin();
Serial.println("start"); Serial.println("start");
Serial.println(UDP_TX_PACKET_MAX_SIZE); Serial.println(UDP_TX_PACKET_MAX_SIZE);
@ -28,7 +28,5 @@ void loop() {
memset(data, value, size); memset(data, value, size);
artnet.set(universe, data, size); artnet.set(universe, data, size);
artnet.streaming(); // automatically send set data in 40fps artnet.streaming(target_ip); // automatically send set data in 40fps
// Serial.println("loop");
} }

@ -28,7 +28,7 @@ void setup() {
Serial.print("WiFi connected, IP = "); Serial.print("WiFi connected, IP = ");
Serial.println(WiFi.localIP()); Serial.println(WiFi.localIP());
artnet.begin(target_ip); artnet.begin();
// artnet.subscribe_net(0); // optionally you can change // artnet.subscribe_net(0); // optionally you can change
// artnet.subscribe_subnet(0); // optionally you can change // artnet.subscribe_subnet(0); // optionally you can change
@ -60,5 +60,5 @@ void loop() {
memset(data, value, size); memset(data, value, size);
artnet.set(universe, data, size); artnet.set(universe, data, size);
artnet.streaming(); // automatically send set data in 40fps artnet.streaming(target_ip); // automatically send set data in 40fps
} }

@ -28,7 +28,7 @@ void setup() {
Serial.print("WiFi connected, IP = "); Serial.print("WiFi connected, IP = ");
Serial.println(WiFi.localIP()); Serial.println(WiFi.localIP());
artnet.begin(target_ip); artnet.begin();
} }
void loop() { void loop() {
@ -36,5 +36,5 @@ void loop() {
memset(data, value, size); memset(data, value, size);
artnet.set(universe, data, size); artnet.set(universe, data, size);
artnet.streaming(); // automatically send set data in 40fps artnet.streaming(target_ip); // automatically send set data in 40fps
} }

Loading…
Cancel
Save