-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
52063f9
commit 62969e5
Showing
9 changed files
with
64 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
@file Pin-PWM.ino | ||
@author Alec Fenichel | ||
@brief Pin PWM example | ||
@details Use PWM with the Pin library | ||
*/ | ||
|
||
#include <Pin.h> // Include Pin library | ||
|
||
Pin myPin = Pin(5); // Create Pin object for digital pin labelled 5 on any of the supported boards | ||
|
||
/** | ||
Called at start | ||
*/ | ||
void setup() { | ||
myPin.setOutput(); // Set Pin to output mode | ||
// The Pin must support PWM | ||
myPin.setDutyCycle(127); // Set Pin duty cycle to 127 (~50%) | ||
} | ||
|
||
/** | ||
Called continously after setup | ||
*/ | ||
void loop() { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name=Pin | ||
version=2.2.3 | ||
version=2.3.0 | ||
author=Alec Fenichel <[email protected]> | ||
maintainer=Alec Fenichel <[email protected]> | ||
sentence=An easy to use Arduino library for fast digital I/O using port manipulation. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters