Port of the official Arduino library with Hardware Serial