Skip to content

Commit

Permalink
remaining device devaults
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar committed Feb 18, 2019
1 parent 9135bd8 commit 3cc9a8c
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 23 deletions.
31 changes: 20 additions & 11 deletions build/app.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/app.js.map

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions src/devices/52_senseair.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
import { pins } from './_defs';

export const senseAir = {
defaults: () => ({
gpio1: 255,
gpio2: 255,
'settings.values[0].name': 'CO2',
}),
sensor: {
name: 'Data Acquisition',
configs: {
Expand Down
8 changes: 7 additions & 1 deletion src/devices/56_sds011.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
import { pins } from './_defs';

export const sds011 = {
defaults: () => ({
gpio1: 255,
gpio2: 255,
'settings.values[0].name': 'PM2.5',
'settings.values[1].name': 'PM10',
}),
sensor: {
name: 'Data Acquisition',
configs: {
Expand All @@ -10,5 +16,5 @@ export const sds011 = {
}
},
data: true,
vals: 1,
vals: 2,
}
10 changes: 5 additions & 5 deletions src/devices/59_rotary_encoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { pins } from './_defs';

export const rotaryEncoder = {
defaults: () => ({
ValueCount: 1,
SendDataOption: 1,
TimerOption: 1,
TimerOptional: 1,
GlobalSync: 1,
gpio1: 255,
gpio2: 255,
gpio3: 255,
'configs_long[1]': 100,
'settings.values[0].name': 'Counter',
}),
sensor: {
name: 'Data Acquisition',
Expand Down
8 changes: 3 additions & 5 deletions src/devices/63_ttp229.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ export const ttp229 = {
}),
sensor: {
defaults: () => ({
ValueCount: 1,
SendDataOption: 1,
TimerOption: 1,
TimerOptional: 1,
GlobalSync: 1,
gpio1: 255,
gpio2: 255,
'settings.values[0].name': 'ScanCode',
}),
name: 'Sensor',
configs: {
Expand Down

0 comments on commit 3cc9a8c

Please sign in to comment.