User:Mikeqin: Difference between revisions
Jump to navigation
Jump to search
Add character count |
|||
Line 10: | Line 10: | ||
use shell:echo -n convertstr | xxd -r -p | use shell:echo -n convertstr | xxd -r -p | ||
use c: call pipe function(popen,fread,pclose) | use c: call pipe function(popen,fread,pclose) | ||
* Calculate character count | |||
echo character | wc -m |
Revision as of 11:36, 16 April 2014
Contact
Fengling.Qin@gmail.com
Dev Log
- Use Milkymist One JTAG/Serial for common user
Edit udev rules( for example:/etc/udev/rules.d/99-mike.rules Add SUBSYSTEMS=="usb", ATTRS{idVendor}=="20b7", ATTRS{idProduct}=="0713" GROUP="YOUR_USER_GROUP" to the end of the file. YOUR_USER_GROUP(mikeqin)
- Convert char to hex
use shell:echo -n convertstr | xxd -r -p use c: call pipe function(popen,fread,pclose)
- Calculate character count
echo character | wc -m