Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Hello,
I have a DMX to control some LED ( RGB ) . In MBED they have'nt librairy for DMX. So, I want make one ! But I have some problems. How communicate Byte in USB ?
I have try this : Tx = p9 & Rx = p10
DMX :: DMX(PinName Tx, PinName Rx) : _cmd(Tx,Rx){}
void DMX :: Init(){ _cmd.format(8, Serial::None, 2); for(int i = 0; i < 22 ; i++){ _cmd.printf("%x", 0); }
}
void DMX :: setInfos( int * infos){ for(int i = 0 ; i < 512 ; i++) _cmd.printf("%x",255);
}
But no effect when I launch it ..
Do you have idea ?
Sorry my english it's so bad :)