This file contains hidden or 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 is a example written for the SparkFun Qwiic Joystick | |
SparkFun sells these at its website: www.sparkfun.com | |
Do you like this library? Help support SparkFun. Buy a board! | |
https://www.sparkfun.com/products/15168 | |
Written by Wes Furuya @ SparkFun Electronics, February 5th, 2019 | |
The Qwiic Joystick is a I2C controlled analog joystick |
This file contains hidden or 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
/****************************************************************************** | |
TMP117vsTMP102vsTMP36.ino | |
Written by: Ho Yun "Bobby" Chan | |
@ SparkFun Electronics | |
Date: Nov 4, 2019 | |
Description: This sketch configures temperature sensors and prints the | |
temperature in degrees celsius and fahrenheit. For comparison, the | |
TMP117, TMP102, and TMP36 temperature sensor is also printed to compare the output | |
in degrees celsius and fahrenheit. Simply adjust the `output_select` |
This file contains hidden or 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
/****************************************************************************** | |
TMP102vsTMP36.ino | |
Written by: Ho Yun "Bobby" Chan | |
@ SparkFun Electronics | |
Date: Nov 4, 2019 | |
Description: This sketch configures temperature sensors and prints the | |
temperature in degrees celsius and fahrenheit. For comparison, the | |
TMP102 and TMP36 temperature sensor is also printed to compare the output | |
in degrees celsius and fahrenheit. Simply adjust the `output_select` |
This file contains hidden or 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
/****************************************************************************** | |
TMP36_averaging.ino | |
Written by Ho Yun "Bobby" Chan | |
@ SparkFun Electronics | |
Date: Nov 4, 2019 | |
Description: This sketch configures temperature sensor and prints the | |
temperature in degrees celsius and fahrenheit. A sample set of data points | |
are saved in an array and averaged in an attempt to smooth out readings. | |
Simply adjust the `output_select` to view the °C, °F, or both. Open the |
This file contains hidden or 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
/****************************************************************************** | |
TMP36.ino | |
Written by Ho Yun "Bobby" Chan | |
@ SparkFun Electronics | |
Date: Nov 4, 2019 | |
https://gist.github.com/bboyho/c30b70fc308f41b92a6f1b07e5a54838 | |
Description: This sketch configures temperature sensor and prints the | |
temperature in degrees celsius and fahrenheit. Simply adjust the `output_select` | |
to view the °C, °F, or both. Open the Serial Monitor or Plotter at 115200 baud |
This file contains hidden or 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
/* HID Joystick Mouse Example | |
by: Jim Lindblom | |
date: 1/12/2012 | |
license: MIT License - Feel free to use this code for any purpose. | |
No restrictions. Just keep this license if you go on to use this | |
code in your future endeavors! Reuse and share. | |
This is very simplistic code that allows you to turn the | |
SparkFun Thumb Joystick (http://www.sparkfun.com/products/9032) | |
into an HID Mouse. The select button on the joystick is set up |
This file contains hidden or 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
/****************************************************************************** | |
sifive_Hifive1blink.c | |
DEVELOPMENT ENVIRONMENT SPECIFICS: | |
Firmware developed using Freedom Studio v4.12.0.2019-08-2 | |
on Windows 10 | |
========== RESOURCES ========== | |
Freedom E SDK | |
This file contains hidden or 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
/****************************************************************************** | |
TMP117vsTMP36.ino | |
Modified Example 1 to Compare the Precision of TMP117 against TMP36 | |
Madison Chodikov @ SparkFun Electronics | |
Modified by Ho Yun "Bobby" Chan | |
May 29 2019 | |
~ | |
This sketch configures the TMP117 temperature sensor and prints the | |
temperature in degrees celsius and fahrenheit. For comparison, the |
This file contains hidden or 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
/****************************************************************************** | |
SparkFun_TMP117_Breakout_Example.ino | |
Example for the TMP117 I2C Temperature Sensor | |
Madison Chodikov @ SparkFun Electronics | |
May 29 2019 | |
~ | |
This sketch configures the TMP117 temperature sensor and prints the | |
alert state of the temperature sensor. |
This file contains hidden or 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
//Create brightness variable | |
//Ranging from 0.0-1.0: | |
// 0.0 is off | |
// 0.5 is 50% | |
// 1.0 is fully on | |
float brightness_LED = 0.7; | |
float knobValue = 0.0; | |
//. | |
//. |