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

Method setDirection

libraries/AS5600/AS5600.cpp:113–120  ·  view source on GitHub ↗

//////////////////////////////////////////////////// CONFIGURATION REGISTERS + direction pin

Source from the content-addressed store, hash-verified

111// CONFIGURATION REGISTERS + direction pin
112//
113void AS5600::setDirection(uint8_t direction)
114{
115 _direction = direction;
116 if (_directionPin != 255)
117 {
118 digitalWrite(_directionPin, _direction);
119 }
120}
121
122
123uint8_t AS5600::getDirection()

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36