From 1d8a97a9f879eee748d78558eabacec905fc48d3 Mon Sep 17 00:00:00 2001 From: Stian Eikeland Date: Tue, 7 Jan 2014 23:15:25 +0100 Subject: [PATCH] Fix some comments --- rpio.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpio.go b/rpio.go index 4efe204..f2c9655 100644 --- a/rpio.go +++ b/rpio.go @@ -164,7 +164,7 @@ func (pin Pin) PullOff() { PullMode(pin, PullOff) } -// WritePin sets the direction of a given pin (Input or Output) +// PinMode sets the direction of a given pin (Input or Output) func PinMode(pin Pin, direction Direction) { // Pin fsel register, 0 or 1 depending on bank @@ -204,7 +204,7 @@ func WritePin(pin Pin, state State) { memlock.Unlock() } -// Read the state of a +// Read the state of a pin func ReadPin(pin Pin) State { // Input level register offset (13 / 14 depending on bank) levelReg := uint8(pin)/32 + 13