TODO: - add GPIO number range check, depending on device - add debug code for testing FT232R, especially reading GPIO configuration - test mixed input and output with FT232R and PL2303 - ...