initialized _mode attribute of DigitalPin; changed Board.digital_pins to property