main/Kconfig.projbuild

Wed, 04 Oct 2023 11:28:49 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Wed, 04 Oct 2023 11:28:49 +0200
changeset 80
715785443a95
parent 77
15dc572a7fcb
permissions
-rw-r--r--

Version 0.3.1. Remove obsolete files from spiffs filesystem. Removed obsolete wifi stations.conf file and functions. Removed obsolete user screens.

menu "CO2 meter configuration"

    menu "WiFi settings"

	config ESP_WIFI_SSID
	    string "WiFi SSID"
	    default "myssid"
	    help
		SSID (network name) for to connect to.

	config ESP_WIFI_PASSWORD
	    string "WiFi Password"
	    default "mypassword"
	    help
		WiFi WPA2/WPA3 password to use.

	choice ESP_WIFI_SCAN_METHOD
	    prompt "scan method"
	    default WIFI_FAST_SCAN
	    help
		scan method for the esp32 to use
	    config WIFI_FAST_SCAN
		bool "fast"
	    config WIFI_ALL_CHANNEL_SCAN
		bool "all"
	endchoice

	config ESP_FAST_SCAN_MINIMUM_SIGNAL
	    int "WiFi fast scan minimum RSSI"
	    range -127 0
	    default -96
	    help
		RSSI minimum reliable level to connect to an AP

	config ESP_WIFI_ROAMING_LEVEL
	    int "WiFi RSSI level for alternative AP"
	    range -96 -50
	    default -67
	    help
		RSSI level to start looking for a better AP

    endmenu

    menu "MQTT server"

	config MQTT_SERVER
	    string "MQTT server"
	    default "mqtt.eclipseprojects.io"
	    help
		The MQTT server to connect to

	config MQTT_PORT
	    int "MQTT port number"
	    default 1883
	    help
		The MQTT server port

	config MQTT_USER
	    string "MQTT optional username"
	    default ""
	    help
		The optional MQTT username.

	config MQTT_PASS
	    string "MQTT password"
	    default "letmein"
	    help
		The optional MQTT password for the username.

    endmenu

    config ONE_WIRE_BUS
	int "OneWire Bus GPIO number"
        range 0 34
        default 25
        help
                GPIO number (IOxx) to access the DS18B20 for the bottle temperature semsor.

                Some GPIOs are used for other purposes (flash connections, etc.) and cannot be used.

                GPIOs 35-39 are input-only so cannot be used to drive the One Wire Bus.

    menu "I2C bus"

        config I2C_MASTER_SCL
            int "SCL GPIO Num"
	    range 0 39
            default 22
            help
                GPIO number for I2C Master clock line.

        config I2C_MASTER_SDA
            int "SDA GPIO Num"
	    range 0 39
            default 21
            help
                GPIO number for I2C Master data line.

        config I2C_MASTER_PORT_NUM
            int "Port Number"
            default 0
            help
                Port number for I2C Master device.

	config I2C_MASTER_FREQUENCY
           int "Master Frequency"
	   range 100000 400000
           default 100000
           help
               I2C Speed of Master device in Hz.

    endmenu

    menu "Rotary encoder"

    config ROT_ENC_A_GPIO
    	int "Rotary Encoder A output GPIO number"
        range 0 39
        default 27
        help
                GPIO number (IOxx) from which to sample the Rotary Encoder 'A' output.

                Some GPIOs are used for other purposes (flash connections, etc.) and cannot be used.

    config ROT_ENC_B_GPIO
    	int "Rotary Encoder B output GPIO number"
        range 0 39
        default 26
        help
                GPIO number (IOxx) from which to sample the Rotary Encoder 'B' output.

                Some GPIOs are used for other purposes (flash connections, etc.) and cannot be used.

    config ROT_ENC_SW_GPIO
	int "Rotary Encoder push switch GPIO number"
	range 0 39
	default 14
	help
		GPIO number (IOxx) from which to sample the Rotary Push function output and to
		wakeup the ESP from deep sleep.

		Some GPIOs are used for other purposes (flash connections, etc.) and cannot be used.
    endmenu

    menu "ADC channels"

    config BATT_CHANNEL
	int "Power monitor analog measurement channel"
	range 4 7
	default 4
	help
		The ADC1 channel to measure the half VDD voltage ladder


    config PRESSURE_1
	int "Pressure transducer 1"
	range 4 7
	default 7
	help
		The ADC1 channel to measure the first pressure transducer

    config PRESSURE_2
        int "Pressure transducer 2"
        range 4 7
        default 6
        help
                The ADC1 channel to measure the second pressure transducer

    config PRESSURE_3
        int "Pressure transducer 3"
        range 4 7
        default 5
        help
                The ADC1 channel to measure the third pressure transducer

    endmenu

endmenu

mercurial