modify constants
fix a bug in capability query.
implement Device method getc() for convinience.
modify Query\Firmware
modify .gitignore
implement pin state query