Skip to content

Commit

Permalink
Update init.go
Browse files Browse the repository at this point in the history
  • Loading branch information
liamg committed Sep 29, 2021
1 parent cfbdae7 commit 0d4bacf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion init.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ func (l *LCD) init() {
}

func (l *LCD) Close() {
l.pins.readWrite.Low()
if l.pins.readWrite == nil {
l.pins.readWrite.Low()
}
l.pins.registerSelect.Low()
for _, pin := range l.pins.data {
pin.Low()
Expand Down

0 comments on commit 0d4bacf

Please sign in to comment.