Files
mongoose-touch/mos.yml

75 lines
2.4 KiB
YAML

platform: esp32
author: Pim van Pelt <pim@ipng.nl>
description: A Mongoose-OS Huzzah32 Featherwing
version: 1.0
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]
- ["sys.esp32_adc_vref", 3300] # ADC Vref is 3.3V
- ["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.debug", true]
- ["spi.mosi_gpio", 18]
- ["spi.miso_gpio", 19]
- ["spi.sclk_gpio", 5]
- ["spi.cs0_gpio", 32]
- ["spi.cs1_gpio", -1]
- ["spi.cs2_gpio", -1]
- ["ili9341.cs_pin", 15]
- ["ili9341.dc_pin", 33]
- ["stmpe610.cs_index", 0]
- ["stmpe610.irq_pin", 23]
# 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/rpc-uart
- origin: https://github.com/mongoose-os-libs/prometheus-metrics
- 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/pimvanpelt/ili9341-spi
- origin: https://github.com/pimvanpelt/stmpe610-spi
# Used by the mos tool to catch mos binaries incompatible with this file format
manifest_version: 2017-05-18