MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / setOperatingMode

Method setOperatingMode

libraries/Cozir/cozir.cpp:77–84  ·  view source on GitHub ↗

/////////////////////////////////////////////////////// OPERATING MODE note: use CZR_COMMAND to minimize power consumption CZR_POLLING and CZR_STREAMING use an equally amount of power as both sample continuously...

Source from the content-addressed store, hash-verified

75// of power as both sample continuously...
76//
77bool COZIR::setOperatingMode(uint8_t mode)
78{
79 if (mode > CZR_POLLING) return false;
80 _operatingMode = mode;
81 sprintf(_buffer, "K %u", mode);
82 _command(_buffer);
83 return true;
84}
85
86
87////////////////////////////////////////////////////////////

Callers 1

unittestFunction · 0.80

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.64