Skip to main content

hardware.configure(peripheral, )

No longer used way to configure the hardware

Availability

Device
DEPRECATED METHOD — DO NOT USE IN NEW CODE

Parameters

Name Type Description
peripheral Constant Peripheral to configure
... Further peripherals if needed

Returns

Nothing

Description

This method provides an alternative, but inflexible, way to configure the imp's multi-pin peripherals. It is deprecated.

The parameters are one or more of the following constants:

Parameter Effect
SPI_257 Enable hardware.spi257
SPI_189 Enable hardware.spi189
UART_1289 Enable hardware.uart1289
UART_57 Enable hardware.uart57
UART_12 Enable hardware.uart12
I2C_89 Enable hardware.i2c89
I2C_12 Enable hardware.i2c12
UART2_1289 Another name for UART_1289
UART1_57 Another name for UART_57
I2C1_89 Another name for I2C_89
I2C2_12 Another name for I2C_12

Notice that you can't use this method to specify any of the important options for these peripherals: clock rate, data format and so on. For that reason, new code should instead use the individual peripherals' .configure() methods, listed below.