-
Notifications
You must be signed in to change notification settings - Fork 2
/
doc.go
executable file
·35 lines (33 loc) · 1.08 KB
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
Go Language Raspberry Pi Interface
(c) Copyright David Thorpe 2016-2018
All Rights Reserved
Documentation http://djthorpe.github.io/gopi/
For Licensing and Usage information, please see LICENSE.md
*/
// This module provides the ability to do pulse-width-modulation (PWM)
// on GPIO pins, affecting both the period of the pulses and the "duty
// cycle" which determines how long a pulse is "high" for, compared to
// the "low" state.
//
// RASPBERRY PI IMPLEMENTATION
//
// The Raspberry Pi implementation uses "Pi Blaster" which can be cloned
// from https://github.com/sarfata/pi-blaster and installed using the
// following set of commands:
//
// git clone https://github.com/sarfata/pi-blaster
// cd pi-blaster/
// sudo apt-get install autoconf
// ./autogen.sh && ./configure && make
// sudo make install
//
// This will run the system daemon and you will end up with a named pipe
// called /dev/pi-blaster
//
// You can then run the included pwm_ctrl command in order to control the
// PWM function. For example:
//
// go run -tags rpi ./cmd/pwm_ctrl/...
//
package pwm