Manuel Miguel
Published © MIT

Skype Emergency Call

When i press a big red button it calls emergency or one of my friends by skype.

BeginnerShowcase (no instructions)2,130
Skype Emergency Call

Things used in this project

Story

Read more

Schematics

Skype Call.fzz

Code

Untitled file

Arduino
#define CUSTOM_SETTINGS
#define INCLUDE_SKYPE_SHIELD

/* Include 1Sheeld library. */ 
#include <OneSheeld.h>

/* Define a boolean flag. */
boolean didWeCall = false;
/* A name for the button on pin 12. */
int buttonPin = 12;

void setup() 
{
  /* Start communication. */
  OneSheeld.begin();
  /* Set the button pin as input. */
  pinMode(buttonPin,INPUT);
}

void loop() 
{
  if (digitalRead(buttonPin) == HIGH)
  {
    if(!didWeCall)
    {
      /* Call one of your Skype's contacts. */
      Skype.call("echo123");  
      /* Set the flag. */
      didWeCall = true;
    }
  }
  else
  {
    /* Reset the flag. */
    didWeCall = false;
  }
}

Codebender

Credits

Manuel Miguel

Manuel Miguel

2 projects • 1 follower
Electronics Designer

Comments