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
/* | |
|| | |
|| @author Alexander Brevig <abrevig@wiring.org.co> | |
|| @url http://wiring.org.co/ | |
|| @contribution Brett Hagman <bhagman@wiring.org.co> | |
|| @contribution Hernando Barragan <b@wiring.org.co> | |
|| | |
|| @description | |
|| | A public field wrapper for providing assignment safe guards | |
|| # |
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
# AStyle: http://astyle.sourceforge.net/ | |
# | |
# C/C++ Standard code formatting - Brett Hagman | |
# | |
# Allman, 2 space indent, indent classes, | |
# space padding around operators, space padding, | |
# remove extra space padding around parentheses, | |
# convert all tabs to spaces, indent switches, | |
# indent cases |
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
#include <string.h> | |
#include <ctype.h> | |
#include <SoftwareSerial.h> | |
// the Bluetooth Shield connects to Pin D9 & D10 | |
SoftwareSerial bt(9,10); | |
const uint8_t req[5] = {0x00, 0x01, 0x00, 0x11, 0x00}; | |
const uint8_t cap[17] = {0x00, 0x0d, 0x00, 0x11, 0x01, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x32}; | |
const uint8_t ping[9] = {0x00, 0x05, 0x07, 0xd1, 0x00, 0xde, 0xad, 0xbe, 0xef}; |
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
// Low frequency output on an arbitrary pin | |
// | |
// Brett Hagman (bhagman@loftypremises.com) | |
// (or bhagman@wiring.org.co) | |
const int lfPin = 6; | |
// Number of milliseconds between flipping the pin state | |
// 30 Hz = twice every 1/30 second | |
// Frequency = f |
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
// Written by Brett Hagman - bhagman@wiring.org.co | |
// Dual Tone Example for the Arduino/Wiring Tone Library | |
#include <Tone.h> | |
#define REST -1 | |
Tone MTone; | |
Tone HTone; |
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
<Module> | |
<ModulePrefs title="Google+ Badge" directory_title="Google+ Badge" title_url="https://code.google.com/p/google-sites-badge-gadget/" description="Add a Google+ badge on your Google Sites pages." screenshot="http://lh3.googleusercontent.com/-OrI1DUdm480/T7y_kOxudFI/AAAAAAAAEgE/rp20hOY3H7c/s800/google-plus-share-button-screenshot.png" thumbnail="http://lh3.googleusercontent.com/-EsINHttHlaw/T7y_kMuuoRI/AAAAAAAAEgA/MxC8OZeUebc/s800/google-plus-share-button-thumbnail.png" width="100%" height="185" scrolling="true" author="BrettJ" author_email="projects@mrscripter.com" author_affiliation="Google"></ModulePrefs> | |
<UserPref name="url" display_name="Google+ Profile URL or Google+ Page URL, copy from your profile, which will look like either: https://plus.google.com/123456789/ or https://plus.google.com/+LarryPage/" required="true"/> | |
<UserPref name="width" display_name="Badge width" default_value="300"/> | |
<UserPref name="layout" display_name="Layout" datatype="enum" default_value="landscape"> | |
<EnumValue value= |
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
<Module> | |
<ModulePrefs | |
width="300" | |
height="106" | |
border="0" | |
description="Add Google Plus Badge to your Google Site." | |
author="Brett Hagman" | |
author_email="bhagman@roguerobotics.com"> | |
<Require feature="dynamic-height"/> | |
</ModulePrefs>/> |
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
/* | |
Braccio.h - Library for controlling the Arduino Robotic Arm; Braccio! | |
Copyright (c) 2016 - Alexander Brevig & Brett Hagman | |
This library is free software; you can redistribute it and/or | |
modify it under the terms of the GNU Lesser General Public | |
License as published by the Free Software Foundation; either | |
version 2.1 of the License, or (at your option) any later version. | |
This library is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
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
/* | |
|| @author Brett Hagman <brett@roguerobotics.com> | |
|| @url https://roguerobotics.com/ | |
|| | |
|| @description | |
|| | A simple example of an UNO WiFi sending data to the Sparkfun Data Service. | |
|| | https://data.sparkfun.com/ | |
|| | | |
|| | In the Arduino IDE, you will need to add the "Arduino Uno WiFi Dev Ed Library" in the Library Manager. | |
|| | Sketch > Include Library > Manage Libraries... |
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
/* | |
|| @author Brett Hagman <brett@roguerobotics.com> | |
|| @url https://roguerobotics.com/ | |
|| | |
|| @description | |
|| | A simple example of an UNO WiFi sending data to the ThingSpeak Data Service (REST). | |
|| | https://thingspeak.com/ | |
|| | | |
|| | In the Arduino IDE, you will need to add the "Arduino Uno WiFi Dev Ed Library" in the Library Manager. | |
|| | Sketch > Include Library > Manage Libraries... |
OlderNewer