add constants for digital I/O.
implement Device method getPin().