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

Method setAddress

libraries/MTP40C/MTP40C.cpp:61–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59
60
61bool MTP40::setAddress(uint8_t address)
62{
63 if (address > 247) return false;
64
65 uint8_t cmd[11] = { 0xFE, 0x10, 0x04, 0x00, 0x01, 0x00, 0x01, 0x60, 0x00, 0x42, 0x58 };
66 cmd[0] = _address;
67 cmd[7] = address;
68 if (request(cmd, 11, 8) )
69 {
70 _address = address;
71 return true;
72 }
73 return false;
74}
75
76
77float MTP40::getAirPressureReference()

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36