Skip to content

Instantly share code, notes, and snippets.

View bboyho's full-sized avatar

Ho Yun "Bobby" bboyho

View GitHub Profile
/*
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
/******************************************************************************
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`
/******************************************************************************
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`
/******************************************************************************
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
@bboyho
bboyho / TMP36.ino
Last active January 24, 2020 19:51
/******************************************************************************
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
@bboyho
bboyho / HID_mouse_example_MOD.ino
Created January 2, 2020 23:18
HID Joystick Mouse Example (Modified)
/* 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
/******************************************************************************
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
/******************************************************************************
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.
//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;
//.
//.