-
Notifications
You must be signed in to change notification settings - Fork 0
/
mos.yml
96 lines (84 loc) · 3.25 KB
/
mos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
author: Pim van Pelt <pim@ipng.nl>
description: A Mongoose-OS Huzzah TFT Featherwing demo
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:
- ["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.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.cs2_gpio", -1]
- ["ili9341.cs_index", 0]
- ["ili9341.width", 480] # Set to 320 for 2.4" Featherwing, set to 480 for 3.5" Featherwing
- ["ili9341.height", 320] # Set to 240 for 2.4" Featherwing, set to 320 for 3.5" Featherwing
- ["stmpe610.cs_index", 1]
- ["stmpe610.orientation", 5] # Set to 4 for 2.4" Featherwing, set to 5 for 3.5" Featherwing
- ["mqtt.enable", true]
- ["mqtt.server", "iot.eclipse.org: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]
- ["app.backlight_pin", 22]
- when: mos.platform == "esp8266"
apply:
build_vars:
MGOS_PLATFORM_ESP8266: 1
config_schema:
- ["spi.mosi_gpio", 13]
- ["spi.miso_gpio", 12]
- ["spi.sclk_gpio", 14]
- ["spi.cs0_gpio", 16] # ILI9341
- ["spi.cs1_gpio", 0] # STMPE610
- ["ili9341.dc_pin", 15]
- ["stmpe610.irq_pin", 4]
- ["app.backlight_pin", 5]
# 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/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
# Used by the mos tool to catch mos binaries incompatible with this file format
manifest_version: 2017-05-18