Skip to content

Commit

Permalink
Merge pull request #5 from ElectronicsClubAltona/master
Browse files Browse the repository at this point in the history
Thanks for the PR, sorry for taking so long!
GiorgioAresu authored Jan 31, 2019
2 parents f808ab0 + c8dd825 commit f769c5e
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions examples/Monitor/Monitor.pde → examples/Monitor/Monitor.ino
Original file line number Diff line number Diff line change
@@ -15,8 +15,8 @@
FanController fan(SENSOR_PIN, SENSOR_THRESHOLD);

/*
* The setup function. We only start the library here
*/
The setup function. We only start the library here
*/
void setup(void)
{
// start serial port
@@ -28,10 +28,10 @@ void setup(void)
}

/*
* Main function, get and show the temperature
*/
Main function, get and show the temperature
*/
void loop(void)
{
{
// Call fan.getSpeed() to get fan RPM.
Serial.print("Current speed: ");
unsigned int rpms = fan.getSpeed(); // Send the command to get RPM
Original file line number Diff line number Diff line change
@@ -18,8 +18,8 @@
FanController fan(SENSOR_PIN, SENSOR_THRESHOLD, PWM_PIN);

/*
* The setup function. We only start the library here
*/
The setup function. We only start the library here
*/
void setup(void)
{
// start serial port
@@ -31,10 +31,10 @@ void setup(void)
}

/*
* Main function, get and show the temperature
*/
Main function, get and show the temperature
*/
void loop(void)
{
{
// Call fan.getSpeed() to get fan RPM.
Serial.print("Current speed: ");
unsigned int rpms = fan.getSpeed(); // Send the command to get RPM

0 comments on commit f769c5e

Please sign in to comment.