2010/04/03

linux echo command

As I was requested to light up some LEDs on my board, one binary from my colleague was used. But I tried in this easy way...

11111100 (bin) > 0374 (oct)
The last two bits stand for two LEDs.

 box# echo -e \\0374 > /dev/gpio0  

沒有留言: