Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed DMX TextLCD mbed-rtos
Diff: ArtNet.h
- Revision:
- 15:b0efafcfbb03
- Child:
- 16:3cc108681a53
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ArtNet.h Tue Mar 08 21:30:42 2016 +0000 @@ -0,0 +1,29 @@ +#ifndef ARTNET_H +#define ARTNET_H + +#include "mbed.h" +#include "EthernetInterface.h" + +#define ArtNetPoort 6454 + +static const char* mbedIp = "2.0.0.100"; //IP +static const char* mbedMask = "255.0.0.0"; // Mask +static const char* mbedGateway = "2.0.0.1"; //Gateway + +void V_ArtNet(); + +void V_ArtNet() +{ + EthernetInterface eth; + eth.init(mbedIp, mbedMask, mbedGateway); + eth.connect(); + UDPSocket ArtNetSocket; + ArtNetSocket.bind(ArtNetPoort); + + Endpoint Client; + +} + + +#endif +