Finished remote control features.
Fixed: Cope with bug in motor board firmware (Wemos): Do not stop sending data through i2c, otherwise the receiving chip stalls.
This commit is contained in:
14
mos.yml
14
mos.yml
@@ -28,15 +28,15 @@ config_schema:
|
||||
# - ["my_app.string_value", "s", "", {title: "Some string value"}]
|
||||
# - ["my_app.int_value", "i", 123, {title: "Some integer value"}]
|
||||
- ["i2c.enable", true]
|
||||
- ["i2c.freq", 1000]
|
||||
- ["i2c.freq", 400]
|
||||
- ["i2c.sda_gpio", 4] # D2
|
||||
- ["i2c.scl_gpio", 5] # D1
|
||||
- ["flashLight", "o", {title: "Flash light / alarm light settings"}]
|
||||
- ["flashLight.address", "i", 0x30, {title: "i2c address of motor controller TB6612 (e.g. WEMOS)"}]
|
||||
- ["flashLight.motorFrequency", "i", 100, {title: "Frequency of PWM in kHz"}]
|
||||
- ["flashLight.motorFrequency", "i", 500, {title: "Frequency of PWM in Hz"}]
|
||||
- ["flashLight.motorUpdateTime", "i", 50, {title: "Time between motor updates in msec"}]
|
||||
- ["flashLight.mqttCtrlTopic", "s", "flashLight/%s/ctrl", {title: "MQTT channel to subscribe to receive commands; %s is replaced by clientId"}]
|
||||
- ["flashLight.mqttStatusTopic", "s", "flashLight/%s/status", {title: "MQTT channel to publish to send status change infos; %s is replaced by clientId"}]
|
||||
|
||||
- ["mqtt.enable", true]
|
||||
- ["mqtt.server", "mqtt.pmpark.de:1883"]
|
||||
- ["mqtt.user", "default"]
|
||||
@@ -44,6 +44,10 @@ config_schema:
|
||||
- ["mqtt.will_message", "offline"]
|
||||
- ["mqtt.will_topic", "flashLight/"]
|
||||
|
||||
- ["sntp.enable", true]
|
||||
- ["sntp.server", "time.google.com"]
|
||||
|
||||
|
||||
# These settings get compiled into the C structure, and can be accessed
|
||||
# from the C code this way:
|
||||
#
|
||||
@@ -75,6 +79,10 @@ libs:
|
||||
- origin: https://github.com/mongoose-os-libs/rpc-loopback
|
||||
- origin: https://github.com/mongoose-os-libs/rpc-mqtt
|
||||
- origin: https://github.com/mongoose-os-libs/rpc-service-ota
|
||||
- origin: https://github.com/mongoose-os-libs/rpc-service-cron
|
||||
- origin: https://github.com/mongoose-os-libs/crontab
|
||||
- origin: https://github.com/mongoose-os-libs/dash
|
||||
- origin: https://github.com/mongoose-os-libs/sntp
|
||||
|
||||
# Used by the mos tool to catch mos binaries incompatible with this file format
|
||||
manifest_version: 2017-05-18
|
||||
|
||||
Reference in New Issue
Block a user