Amr Saleh
Published © MIT

Skype Mobile

Type the name of your friend to call in skype.

BeginnerFull instructions provided2,554
Skype Mobile

Things used in this project

Story

Read more

Schematics

skype mobile caller

I don't think that the circuit is too complicated.

Code

Code

C/C++
the code stores the entered characters in String named text. when you press backspace it removes the last character. also when you press enter is makes skype call of the entered name.
#define CUSTOM_SETTINGS
#define INCLUDE_KEYBOARD_SHIELD
#define INCLUDE_TERMINAL_SHIELD
#define INCLUDE_SKYPE_SHIELD

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

String text = "";

void setup() 
{
  /* Start communication. */
  OneSheeld.begin();
  /* Keyboard callBack function. */
  AsciiKeyboard.setOnButtonChange(&keyboardFunction);
}

void loop()
{}

/* Function to be invoked once a new character is pressed. */
void  keyboardFunction(char data)
{
  Terminal.write(data);
  if(data == '\b')
  {
    if(text.length() > 1){
      text = text.substring(text.length()-1);  
    }else if (text.length() == 1){
      text = "";
    }
  }else if(data == '\n'){
    Skype.call(text);
    text = "";
  }else
  {
    text = text +data;
  }
}

Credits

Guest

Posted by Amr Saleh

Comments