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 <Wire.h> | |
#include <AFMotor.h> // Enables the Motor library | |
#include <Servo.h> // Enables the Servo library | |
// Basic setup | |
Servo PingServo; | |
AF_DCMotor motor1(1); // Motor 1 is connected to the port 1 on the motor shield | |
AF_DCMotor motor2(2); // Motor 2 is connected to the port 2 on the motor shield | |
int minSafeDist = 11 ; // Minimum distance for ping sensor to know when to turn |
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 <Wire.h> | |
// (Based on Ethernet's WebClient Example) | |
#include "WiFly.h" | |
#include "Credentials.h" |
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
/* | |
Part of this Sketch are from Michael Blank's work, parts are from Reid Carlberg. | |
See comments. | |
*/ | |
// 23. November 2009 | |
// works well with LMD18200 Booster !!!!! | |
/*Copyright (C) 2009 Michael Blank |
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
1) Follow the getting started instructions for AngularHerokuBootstrapPHP. | |
http://www2.developerforce.com/mobile/getting-started/html5/#angularjs-heroku | |
2) Update the app definition (in Index.php) -- replace this line near the top of the script section in index.php | |
var app = angular.module('AngularSFDemo', ['AngularForce', 'AngularForceObjectFactory', 'Contact', 'Account']); | |
3) Update routes (app.js) -- add this line to the "routes" declaration at the top. | |
when('/accounts', {controller: AccountListCtrl, templateUrl: 'partials/account/list.html'}). |
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
Developer Console Demo | |
1) SOQL Query | |
Select Id, Name From Account | |
Select Id, Name, Owner.Name From Account | |
Select Id, Name, Owner.Name From Account Limit 5 |
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 <AFMotor.h> // Enables the Motor library | |
// Basic setup | |
AF_DCMotor motor1(1); // Motor 1 is connected to the port 1 on the motor shield | |
int ballSensor = A0; | |
int scoopSensor = A1; | |
int isRunning = 0; | |
int isReseting = 0; | |
int isBallReady = 0; |
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
/* | |
Terrible Code written by @ReidCarlberg | |
I promise to refactor it sometime. | |
*/ | |
#include <Wire.h> | |
#include <Adafruit_LSM303.h> | |
#include <Adafruit_NeoPixel.h> | |
#define PIN 6 |
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
const int xInput = A0; | |
const int yInput = A1; | |
const int zInput = A2; | |
void setup() | |
{ | |
Serial.begin(9600); | |
} | |
void loop() |
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
/* | |
This is a test sketch for the Adafruit assembled Motor Shield for Arduino v2 | |
It won't work with v1.x motor shields! Only for the v2's with built in PWM | |
control | |
For use with the Adafruit Motor Shield v2 | |
----> http://www.adafruit.com/products/1438 | |
*/ | |
#include <Wire.h> |
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
/* | |
This is a test sketch for the Adafruit assembled Motor Shield for Arduino v2 | |
It won't work with v1.x motor shields! Only for the v2's with built in PWM | |
control | |
For use with the Adafruit Motor Shield v2 | |
----> http://www.adafruit.com/products/1438 | |
This sketch creates a fun motor party on your desk *whiirrr* | |
Connect a unipolar/bipolar stepper to M3/M4 |
OlderNewer