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
d |
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
{ | |
'YResolution': (72, 1), | |
'ResolutionUnit': 2, | |
'Make': u 'Apple', | |
'Flash': 16, | |
'SceneCaptureType': 0, | |
'GPSInfo': { | |
1: u 'N', | |
2: ((40, 1), (41, 1), (4204, 100)), | |
3: u 'W', |
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
<html> | |
<head> | |
<style> | |
body { | |
background: #FF00AA | |
} |
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
<html> | |
<head> | |
<style> | |
body { | |
background: #FF00AA | |
} |
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
/* | |
Optical Heart Rate Detection (PBA Algorithm) using the MAX30105 Breakout | |
By: Nathan Seidle @ SparkFun Electronics | |
Date: October 2nd, 2016 | |
https://github.com/sparkfun/MAX30105_Breakout | |
This is a demo to show the reading of heart rate or beats per minute (BPM) using | |
a Penpheral Beat Amplitude (PBA) algorithm. | |
It is best to attach the sensor to your finger using a rubber band or other tightening |
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
#!/usr/bin/env python | |
# | |
# ESP8266 & ESP32 ROM Bootloader Utility | |
# Copyright (C) 2014-2016 Fredrik Ahlberg, Angus Gratton, Espressif Systems (Shanghai) PTE LTD, other contributors as noted. | |
# https://github.com/espressif/esptool | |
# | |
# This program is free software; you can redistribute it and/or modify it under | |
# the terms of the GNU General Public License as published by the Free Software | |
# Foundation; either version 2 of the License, or (at your option) any later version. | |
# |
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
import RPi.GPIO as GPIO | |
import time | |
GPIO.setwarnings(False) | |
GPIO.setmode(GPIO.BOARD) | |
GPIO.setup(11, GPIO.IN) #Read output from PIR motion sensor | |
GPIO.setup(3, GPIO.OUT) #LED output pin | |
while True: | |
i=GPIO.input(11) | |
if i==0: #When output from motion sensor is LOW | |
print "No intruders",i |
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
/* | |
2D Angle Interpolation (shortest distance) | |
Parameters: | |
a0 = start angle | |
a1 = end angle | |
t = interpolation factor (0.0=start, 1.0=end) | |
Benefits: | |
1. Angles do NOT need to be normalized. |
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
/* Charliplexing 6 LEDs | |
-------------------------------------------------------------------------------- | |
Row 1 (R1): Arduino Pin 13 | |
Row 2 (R2): Arduino Pin 12 | |
Row 3 (R3): Arduino Pin 11 | |
-------------------------------------------------------------------------------- | |
variable pinMode state | |
L OUTPUT LOW | |
H OUTPUT HIGH | |
Z INPUT LOW |
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
/* | |
ARDUINO to UNITY3D Smooth data example | |
Based off Arduino smoothing code by: | |
David A. Mellis and Tom Igoe | |
This example code is in the public domain. | |
*/ |
NewerOlder