Good day,
I'm currently trying to build a wireless twitter display using an arduino, wifly shield and LCD.
I already have a code that works for the ethernet portion but i'm trying to make my project wireless.
Could someone give me a hint to what i might need to alter to get it running?
I'm using an Arduino 1.0 IDE running this version of the library:
https://github.com/jmr13031/WiFly-ShieldI have only connected Tx and Rx pin to Arduino pin 2 and 3 respectively. and Vin from arduino to 3.3v and Gnd to Gnd.
Is that right?
this is my code that i used. appreciate the advice!
#include <SPI.h>
#include <Ethernet.h>
#include <TextFinder.h>
#include <LiquidCrystal.h>
#include "WiFly.h"
//WIFLY CONFIG---------------------------
//char passphrase[] = "WIFI_PASSWORD";
//char ssid[] = "WIFI_NAME";
//---------------------------------------
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(9,8,7,6,5,4);
byte mac[] = {0xA2, 0xB1, 0x9A, 0xD2, 0xB3, 0xC5}; //mac address
byte ip[] = {192,168,X,XX};
byte server[] = {128,242,240,20}; // Twitter
char serverName[] = "api.twitter.com"; // twitter URL
char tweet[140];
Client client;
TextFinder finder(client);
void setup()
{
WiFly.begin(mac,ip);
}
void loop()
{
// call XML data from twitter(working)
}