author: Pim van Pelt description: A Mongoose-OS Huzzah32 Featherwing version: 1.0 platform: esp32 platforms: [ esp8266, esp32 ] libs_version: ${mos.version} modules_version: ${mos.version} mongoose_os_version: ${mos.version} tags: - c - hw # List of files / directories with C sources. No slashes at the end of dir names. sources: - src includes: - include # List of dirs. Files from these dirs will be copied to the device filesystem filesystem: - fs config_schema: # - ["debug.level", 4] # - ["spi.debug", true] - ["wifi.ap.enable", false] - ["wifi.sta.enable", true] - ["wifi.sta.ssid", "dapches-iot"] - ["wifi.sta.pass", "marielle"] - ["tft", "o", {title: "TFT settings"}] - ["tft.orientation", "i", {title: "Orientation; 0=PORTRAIT 1=LANDSCAPE 2=PORTRAIT_FLIP 3=LANDSCAPE_FLIP"}] - ["tft.orientation", 1 ] - ["app", "o", {title: "APP settings"}] - ["app.hostname", "s", {title: "Device hostname"}] - ["app.hostname", "Mongoose Touch"] - ["app.backlight_pin", "i", {title: "Backlight pin"}] - ["app.backlight_pin", 22] - ["app.inactivity_timeout", "i", {title: "Inactivity timeout in seconds"}] - ["app.inactivity_timeout", 10] - ["app.battery_calibration", i, {title: "Battery ADC value at 4000mV"}] - ["app.battery_calibration", 2360] - ["spi.enable", true] - ["spi.cs1_gpio", -1] - ["spi.cs2_gpio", -1] - ["ili9341.cs_index", 0] - ["stmpe610.cs_index", 1] - ["mqtt.enable", true] - ["mqtt.server", "chbtl01.paphosting.net:1883"] conds: - when: mos.platform == "esp32" apply: build_vars: MGOS_PLATFORM_ESP32: 1 config_schema: - ["sys.esp32_adc_vref", 3300] # ADC Vref is 3.3V - ["spi.mosi_gpio", 18] - ["spi.miso_gpio", 19] - ["spi.sclk_gpio", 5] - ["spi.cs0_gpio", 15] # ILI9341 - ["spi.cs1_gpio", 32] # STMPE610 - ["ili9341.dc_pin", 33] - ["stmpe610.irq_pin", 23] - when: mos.platform == "esp8266" apply: build_vars: MGOS_PLATFORM_ESP8266: 1 # List of libraries used by this app, in order of initialisation libs: - origin: https://github.com/mongoose-os-libs/wifi - origin: https://github.com/mongoose-os-libs/http-server - origin: https://github.com/mongoose-os-libs/rpc-service-config - origin: https://github.com/mongoose-os-libs/rpc-service-fs - origin: https://github.com/mongoose-os-libs/prometheus-metrics - origin: https://github.com/mongoose-os-libs/mqtt - origin: https://github.com/mongoose-os-libs/pwm - origin: https://github.com/mongoose-os-libs/adc - origin: https://github.com/mongoose-os-libs/spi - origin: https://github.com/mongoose-os-libs/ili9341-spi - origin: https://github.com/mongoose-os-libs/stmpe610-spi - origin: libs/ota-http-client - origin: libs/ota-http-server - origin: libs/rpc-service-ota # Used by the mos tool to catch mos binaries incompatible with this file format manifest_version: 2017-05-18