dmx_slave.onReceiveComplete ( OnFrameReceiveComplete );
This is telling the dmx_slave instance that it should call the function OnFrameReceiveComplete() when the onReceiveComplete event occurs. This function is not defined anywhere in your (borrowed/stolen/filched/used with permission) code.
Looks like that page is going to be useless. Perhaps the author could help.