aboutsummaryrefslogtreecommitdiff
path: root/main/Kconfig.projbuild
diff options
context:
space:
mode:
authorMaël Gassmann <mael.gassmann@students.bfh.ch>2024-04-23 00:20:56 +0200
committerMaël Gassmann <mael.gassmann@students.bfh.ch>2024-04-23 00:34:03 +0200
commitc8ccb70ef36b3a4ef294aaf5e7b8bc4bec52e1dd (patch)
treebeed7a8ee3b8a5e7bc96a5c2a37bffd9de452a1c /main/Kconfig.projbuild
parentda89ebfa2556406134f882731b5c6f34848c661c (diff)
[+] MCP23017 as I2C screen controller and test
Diffstat (limited to 'main/Kconfig.projbuild')
-rw-r--r--main/Kconfig.projbuild148
1 files changed, 148 insertions, 0 deletions
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