Reading and using config files for lamps, colors and animation
This commit is contained in:
13
mos.yml
13
mos.yml
@@ -1,7 +1,7 @@
|
||||
version: "1.0"
|
||||
version: "0.8"
|
||||
arch: esp8266
|
||||
author: mongoose-os
|
||||
description: NeoPixel app to control model railroad house lightnings
|
||||
author: Dirk Jahnke
|
||||
description: dlite - NeoPixel app to control model railroad house lightnings
|
||||
mongoose_os_version: ${mos_version}
|
||||
sources:
|
||||
- src
|
||||
@@ -32,8 +32,13 @@ config_schema:
|
||||
- ["i2c.enable", true]
|
||||
- ["led", "o", {"title": "LED control settings"}]
|
||||
- ["led.pin", "i", 2, {title: "Pin for data to WS2812 based LED chain"}]
|
||||
- ["led.useDefaults", "b", true, {title: "Use default values for colors, led-definitions, animations"}]
|
||||
- ["led.useDefaults", "b", false, {title: "Use default values for colors, led-definitions, animations"}]
|
||||
- ["led.count", "i", 32, {title: "Number of LEDs connected in the chain"}]
|
||||
- ["led.updateCycle", "i", 500, {title: "Frequency of LED update in ms"}]
|
||||
- ["led.brightness", "i", 30, {title: "Default brightness in % (1-100)"}]
|
||||
- ["led.colorFile", "s", "colors.cfg", {title: "File name containing color definitions"}]
|
||||
- ["led.lampsFile", "s", "lamps.cfg", {title: "File name containing lamp definitions"}]
|
||||
- ["led.animationFile", "s", "animations.cfg", {title: "File name containing animation definitions"}]
|
||||
build_vars:
|
||||
MGOS_ENABLE_ONEWIRE: 1
|
||||
cflags: []
|
||||
|
||||
Reference in New Issue
Block a user