Orefatoi
/
afero_poc15_171201
POC1.5 prototype 2 x color sensor 2 x LM75B 3 x AnalogIn 1 x accel
Diff: edge_utils/edge_mgr.cpp
- Revision:
- 8:5590f55bdf41
- Parent:
- 7:aa858d789025
- Child:
- 9:f958fa2cdc74
--- a/edge_utils/edge_mgr.cpp Thu Dec 07 01:06:46 2017 +0000 +++ b/edge_utils/edge_mgr.cpp Thu Dec 07 10:13:13 2017 +0000 @@ -80,9 +80,12 @@ if (sensor[sensor_index]) { afero->setAttributeBool(ATTR_COLOR0_PRESENT, true) ; afero->setAttributeBool(ATTR_COLOR0_ENABLE, true) ; - afero->setAttribute32(ATTR_COLOR0_PWM_R, color0_pwm[0]) ; - afero->setAttribute32(ATTR_COLOR0_PWM_G, color0_pwm[1]) ; - afero->setAttribute32(ATTR_COLOR0_PWM_B, color0_pwm[2]) ; +// afero->setAttribute32(ATTR_COLOR0_PWM_R, color0_pwm[0]) ; +// afero->setAttribute32(ATTR_COLOR0_PWM_G, color0_pwm[1]) ; +// afero->setAttribute32(ATTR_COLOR0_PWM_B, color0_pwm[2]) ; + afero->getAttribute(ATTR_COLOR0_PWM_R) ; + afero->getAttribute(ATTR_COLOR0_PWM_G) ; + afero->getAttribute(ATTR_COLOR0_PWM_B) ; } else { afero->setAttributeBool(ATTR_COLOR0_PRESENT, false) ; } @@ -91,9 +94,12 @@ if (sensor[sensor_index]) { afero->setAttributeBool(ATTR_COLOR1_PRESENT, true) ; afero->setAttributeBool(ATTR_COLOR1_ENABLE, true) ; - afero->setAttribute32(ATTR_COLOR1_PWM_R, color1_pwm[0]) ; - afero->setAttribute32(ATTR_COLOR1_PWM_G, color1_pwm[1]) ; - afero->setAttribute32(ATTR_COLOR1_PWM_B, color1_pwm[2]) ; +// afero->setAttribute32(ATTR_COLOR1_PWM_R, color1_pwm[0]) ; +// afero->setAttribute32(ATTR_COLOR1_PWM_G, color1_pwm[1]) ; +// afero->setAttribute32(ATTR_COLOR1_PWM_B, color1_pwm[2]) ; + afero->getAttribute(ATTR_COLOR1_PWM_R) ; + afero->getAttribute(ATTR_COLOR1_PWM_G) ; + afero->getAttribute(ATTR_COLOR1_PWM_B) ; } else { afero->setAttributeBool(ATTR_COLOR1_PRESENT, false) ; }