Example #1
0
File: pi.go Project: rafkhan/pi
func Write(p int, m int) {
	C.digitalWrite(C.int(p), C.int(m))
}
Example #2
0
func (l *littleWire) digitalWrite(pin uint8, state uint8) error {
	C.digitalWrite(l.lwHandle, C.uchar(pin), C.uchar(state))
	return l.error()
}
Example #3
0
//void digitalWrite(littleWire* lwHandle, unsigned char pin, unsigned char state);
func (l *LittleWire) DigitalWrite(pin uint8, state uint8) {
	C.digitalWrite(l.lwHandle, C.uchar(pin), C.uchar(state))
}