From c8ccb70ef36b3a4ef294aaf5e7b8bc4bec52e1dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Gassmann?= Date: Tue, 23 Apr 2024 00:20:56 +0200 Subject: [+] MCP23017 as I2C screen controller and test --- main/Kconfig.projbuild | 148 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 main/Kconfig.projbuild (limited to 'main/Kconfig.projbuild') diff --git a/main/Kconfig.projbuild b/main/Kconfig.projbuild new file mode 100644 index 0000000..18b0727 --- /dev/null +++ b/main/Kconfig.projbuild @@ -0,0 +1,148 @@ +menu "Configuration of the Nixie Screen" + + orsource "$IDF_PATH/examples/common_components/env_caps/$IDF_TARGET/Kconfig.env_caps" + + config MCP_I2C_ADDR + hex "I2C address of mcp23017" + default 0x20 + help + I2C address of `mcp23017`. `mcp23017` has three address pins (`A0`, + `A1`, and `A2`). The address starts from `0x20` (all pins are + grounded), which is the default, and ends at `0x27`. See "3.3.1 + ADDRESSING I2C DEVICES (MCP23017)" in the datasheet. + + config SDA_PIN + int "SDA pin number" + range ENV_GPIO_RANGE_MIN ENV_GPIO_OUT_RANGE_MAX + default 6 + help + Pin number for SDA pin. + + config SCL_PIN + int "SCL pin number" + range ENV_GPIO_RANGE_MIN ENV_GPIO_OUT_RANGE_MAX + default 7 + help + Pin number for SLC pin. + + config MIN + int + default 0 + + config MAX + int + default 7 + + config N0_P0 + int "N0_P0 pin number" + range MIN MAX + default 4 + help + Pin number for N0_P0. + + config N0_P1 + int "N0_P1 pin number" + range MIN MAX + default 5 + help + Pin number for N0_P1. + + config N0_P2 + int "N0_P2 pin number" + range MIN MAX + default 6 + help + Pin number for N0_P2. + + config N0_P3 + int "N0_P3 pin number" + range MIN MAX + default 7 + help + Pin number for N0_P3. + + config N1_P0 + int "N1_P0 pin number" + range MIN MAX + default 0 + help + Pin number for N1_P0. + + config N1_P1 + int "N1_P1 pin number" + range MIN MAX + default 1 + help + Pin number for N1_P1. + + config N1_P2 + int "N1_P2 pin number" + range MIN MAX + default 2 + help + Pin number for N1_P2. + + config N1_P3 + int "N1_P3 pin number" + range MIN MAX + default 3 + help + Pin number for N1_P3. + + config N2_P0 + int "N2_P0 pin number" + range MIN MAX + default 4 + help + Pin number for N2_P0. + + config N2_P1 + int "N2_P1 pin number" + range MIN MAX + default 5 + help + Pin number for N2_P1. + + config N2_P2 + int "N2_P2 pin number" + range MIN MAX + default 6 + help + Pin number for N2_P2. + + config N2_P3 + int "N2_P3 pin number" + range MIN MAX + default 7 + help + Pin number for N2_P3. + + config N3_P0 + int "N3_P0 pin number" + range MIN MAX + default 0 + help + Pin number for N3_P0. + + config N3_P1 + int "N3_P1 pin number" + range MIN MAX + default 1 + help + Pin number for N3_P1. + + config N3_P2 + int "N3_P2 pin number" + range MIN MAX + default 2 + help + Pin number for N3_P2. + + config N3_P3 + int "N3_P3 pin number" + range MIN MAX + default 3 + help + Pin number for N3_P3. + +endmenu \ No newline at end of file -- cgit v1.2.3