Skip to content

Instantly share code, notes, and snippets.

View bboyho's full-sized avatar

Ho Yun "Bobby" bboyho

View GitHub Profile
@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
@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
/******************************************************************************
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
/******************************************************************************
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`
/******************************************************************************
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 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
/******************************************************************************
Qwiic_Keypad_HID_Keyboard_Example.ino
Written by: Ho Yun "Bobby" Chan
Date: February 6, 2020
Development Environment Specifics:
Arduino IDE 1.8.9
Description:
Based on the Jim's Pro Micro "HID Mouse" and Pete' Qwiic Keypad "read button"
examples, this example outputs keyboard presses associated with the keypad.
/******************************************************************************
Qwiic_Keypad_HID_Keyboard_Example.ino
Written by: Ho Yun "Bobby" Chan
Date: February 6, 2020
Development Environment Specifics:
Arduino IDE 1.8.9
Description:
Based on the following examples:
- Jim's Pro Micro "HID Mouse/Keyboard"
/******************************************************************************
Digital Indoor Temperature Monitor with the TMP117
Written by: Ho Yun "Bobby" Chan
@ SparkFun Electronics
Date: Mar 6, 2020
Description: This sketch configures temperature sensors and prints the
temperature in degrees celsius and fahrenheit to the Qwiic microOLED.
Simply adjust the `output_select` to view the °C, °F, or both. You can
also output the values to the SerialUSB Monitor or Plotter at 115200 baud
/******************************************************************************
Digital Indoor Temperature Monitor with the TMP102
Written by: Ho Yun "Bobby" Chan
@ SparkFun Electronics
Date: Mar 26, 2020
Description: This sketch configures temperature sensors and prints the
temperature in degrees celsius and fahrenheit to the Qwiic microOLED.
Simply adjust the `output_select` to view the °C, °F, or both. You can
also output the values to the Serial Monitor or Plotter at 115200 baud