This file contains hidden or 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
// Read temperature | |
// ----------------- | |
// Create a variable that will store the temperature value | |
int temperature = 0; | |
void setup() | |
{ | |
// Register a Spark variable here | |
Spark.variable("temperature", &temperature, INT); |
This file contains hidden or 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
// Read temperature | |
// ----------------- | |
// Create a variable that will store the temperature value | |
int temperature = 0; | |
void setup() | |
{ | |
// Register a Spark variable here | |
Spark.variable("temperature", &temperature, INT); |
This file contains hidden or 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
/* | |
The sketch demonstrates how to do advertise from a Bluetooth Low Energy 4 | |
to the RFduino, then make an LED connected to pin 3 blink. | |
It is supposed to be used with the Cordova RFDuino Plugin Blink app | |
*/ | |
#include <RFduinoBLE.h> | |
int led = 3; |
This file contains hidden or 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
// These are the interrupt and control pins | |
#define ADAFRUIT_CC3000_IRQ 3 // MUST be an interrupt pin! | |
#define ADAFRUIT_CC3000_VBAT 5 | |
#define ADAFRUIT_CC3000_CS 10 | |
Adafruit_CC3000 cc3000 = Adafruit_CC3000(ADAFRUIT_CC3000_CS, ADAFRUIT_CC3000_IRQ, ADAFRUIT_CC3000_VBAT, | |
SPI_CLOCK_DIV2); // you can change this clock speed but DI | |
#define WLAN_SSID "network" | |
#define WLAN_PASS "password" |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using System.Web.Mvc; | |
using Transportation.ViewModels; | |
using Transportation.Models; | |
namespace Transportation.Controllers | |
{ |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using Transportation.Models; | |
namespace Transportation.ViewModels | |
{ | |
public class TransportationViewModel | |
{ | |
public List<Car> Cars {get; set;} |
This file contains hidden or 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
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Transportation.ViewModels.TransportationViewModel>" %> | |
<%@ Import Namespace="Transportation.Models" %> | |
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> | |
ListVehicles | |
</asp:Content> | |
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> | |
<h2>List Vehicles</h2> | |
<h4>Cars:</h4> |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using Transportation.Models; | |
namespace Transportation.ViewModels | |
{ | |
public class TransportationViewModel | |
{ | |
public List<Car> Cars {get; set;} |
NewerOlder