MCPcopy Create free account
hub / github.com/WiringPi/WiringPi / myDigitalWrite

Function myDigitalWrite

wiringPi/drcSerial.c:88–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86 */
87
88static void myDigitalWrite (struct wiringPiNodeStruct *node, int pin, int value)
89{
90 serialPutchar (node->fd, value == 0 ? '0' : '1') ;
91 serialPutchar (node->fd, pin - node->pinBase) ;
92}
93
94
95/*

Callers

nothing calls this directly

Calls 1

serialPutcharFunction · 0.85

Tested by

no test coverage detected