-
Notifications
You must be signed in to change notification settings - Fork 23
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
b75b62f
commit 165bdbf
Showing
7 changed files
with
146 additions
and
106 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#include <Ramp.h> | ||
|
||
int lastValue; | ||
rampInt myRamp; | ||
|
||
void setup() { | ||
Serial.begin(2000000); | ||
myRamp.setGrain(1); | ||
myRamp.go(5000,0,LINEAR); | ||
myRamp.go(0, 15); | ||
Serial.println(); | ||
} | ||
|
||
void loop() { | ||
int val = myRamp.update(); | ||
if (val != lastValue) { | ||
Serial.print(val); | ||
Serial.print("\t|\t"); | ||
Serial.print(myRamp.getCompletion()); | ||
Serial.print(" %"); | ||
Serial.println(); | ||
} | ||
lastValue = val; | ||
} |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name=Ramp | ||
version=0.4.3 | ||
version=0.5.0 | ||
author=Sylvain Garnavault <[email protected]> | ||
maintainer=Sylvain Garnavault <[email protected]> | ||
sentence=A library that manage interpolation beetween values. | ||
|
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