The UART class represents UART asynchronous serial ports, of which imps currently provide between two and five, depending on type. The imp002 module has an additional ‘half’ UART that is receive-only; there is no available transmit pin.
Objects representing a given imp’s specific UART buses are automatically instantiated at start-up and are accessed through the following object properties of the hardware object:
|imp||UART 1||UART 2||UART 3||UART 4||UART 5||UART 6||UART 7|
All of the imp005’s UART buses are all accessed via dedicated pins rather than GPIO, hence the slightly different nomenclature.
The UART object has the following member methods: