MCP23017 Configuration

From FlightGear wiki
Jump to navigation Jump to search

As each device, each MCP23017 you have in your hardware interface must be declared here.
In our radio panel the section defining the MCP23017 chip is as follows :

[IOPACK1]
devicetype=MCP23017
devicename=IOPACK1
deviceaddr=0x20
devicedummy=0
  • devicetype :

This is the class that will be used to create the element in the interface.
In the case of Microchip MCP23017 chips, the module class is MCP23017.

  • devicename :

This is the name under which it will be created at the interface. This name must be unique.
This name must be used in the getDevice(devicename) function, for example. This parameter is case sensitive

  • deviceaddr :

This is the device address on the I2C bus. The address must be supplied in hexadecimal format.

  • devicedummy :

This parameter is actually unused. But have been implemented for futur release. You must leave this parameter to 0