The pinMode() function must be fully implemented.
The following features are required:
- pin mode should be saved for all pins.
- pins set to
INPUT_PULLUP should be set to HIGH by default to simulate the internal pull-up resistor
- calling digitalWrite on an input pin should activate the internal pull-up resistor