{
	"$schema": "http://json-schema.org/draft-07/schema",
	"$id": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/schemas/controllerPinConfig.json",
	"title": "Controller pin configuration",
	"description": "IQRF Gateway Controller pin configuration for specific boards",
	"type": "object",
	"required": [
		"name",
		"deviceType",
		"greenLed",
		"redLed",
		"button"
	],
	"additionalProperties": false,
	"properties": {
		"id": {
			"$id": "#/properties/id",
			"title": "Config ID",
			"description": "Pin configuration database ID",
			"type": "integer",
			"example": 1
		},
		"name": {
			"$id": "#/properties/name",
			"title": "Config name",
			"description": "Pin configuration name",
			"type": "string",
			"example": "IQD-GW-02"
		},
		"deviceType": {
			"$id": "#/properties/deviceType",
			"type": "string",
			"title": "Device type",
			"enum": ["adapter", "board"],
			"example": "board"
		},
		"greenLed": {
			"$id": "#/properties/greenLed",
			"title": "Green LED pin",
			"description": "Green LED pin number",
			"type": "integer",
			"example": 0
		},
		"redLed": {
			"$id": "#/properties/redLed",
			"title": "Red LED pin",
			"description": "Red LED pin number",
			"type": "integer",
			"example": 1
		},
		"button": {
			"$id": "#/properties/button",
			"title": "Button pin",
			"description": "Controller API/management button pin number",
			"type": "integer",
			"example": 2
		},
		"sck": {
			"$id": "#/properties/sck",
			"title": "Clock pin",
			"description": "I2C clock pin number",
			"type": "integer",
			"example": 11
		},
		"sda": {
			"$id": "#/properties/sda",
			"title": "Data pin",
			"description": "I2C data pin number",
			"type": "integer",
			"example": 12
		}
	}
}
