Skip to content

Commit

Permalink
note no support for Pi5
Browse files Browse the repository at this point in the history
  • Loading branch information
warthog618 committed Mar 5, 2024
1 parent 70e6ee9 commit e2b0a65
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ interrupt support, and [embd](https://github.com/kidoman/embd), which supports
interrupts, but uses sysfs for read/write and has a far broader scope than I
require.

This library does not support the Pi5, and never will.

## :warning: Deprecation Warning :warning:

This library relies on the sysfs GPIO interface which is deprecated in the Linux
Expand Down
27 changes: 12 additions & 15 deletions dio.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.

//
//
// Package gpio provides GPIO access on the Raspberry Pi (rev 2 and later).
// Package gpio provides GPIO access on the Raspberry Pi (rev 2 and later, up to but not including Pi5).
//
// Supports simple operations such as:
// - Pin mode/direction (input/output)
Expand All @@ -14,30 +12,29 @@
// - Pull up/down/off
//
// The package intentionally does not support:
// - the obsoleted rev 1 PCB (no longer worth the effort)
// - active low (to prevent confusion this package reflects only the actual hardware levels)
// - the obsoleted rev 1 PCB (no longer worth the effort)
// - active low (to prevent confusion this package reflects only the actual hardware levels)
//
// Example of use:
//
// gpio.Open()
// defer gpio.Close()
// gpio.Open()
// defer gpio.Close()
//
// pin := gpio.NewPin(gpio.J8p7)
// pin.Low()
// pin.Output()
// pin := gpio.NewPin(gpio.J8p7)
// pin.Low()
// pin.Output()
//
// for {
// pin.Toggle()
// time.Sleep(time.Second)
// }
// for {
// pin.Toggle()
// time.Sleep(time.Second)
// }
//
// The library uses the raw BCM2835 pin numbers, not the ports as they are mapped
// on the J8 output pins for the Raspberry Pi.
// A mapping from J8 to BCM is provided for those wanting to use the J8 numbering.
//
// See the spec for full details of the BCM2835 controller:
// http://www.raspberrypi.org/wp-content/uploads/2012/02/BCM2835-ARM-Peripherals.pdf
//
package gpio

import (
Expand Down

0 comments on commit e2b0a65

Please sign in to comment.