it is ok i solved my problem and made 4 chanel dmx512 decoder i have found some example code for proton and basic too you can see them