Show Posts
Pages: 1 2 [3] 4 5 ... 10
31  Forum 2005-2010 (read only) / Syntax & Programs / Re: Using files off of the computer on: December 19, 2010, 03:16:49 pm
il put as meny pics on 1 code at a time then change it for the rest
32  Forum 2005-2010 (read only) / Syntax & Programs / Re: Using files off of the computer on: December 19, 2010, 03:14:43 pm
yes it kinda dose. il just put asmeny as i can and do it block by block
33  Forum 2005-2010 (read only) / Syntax & Programs / Re: Using files off of the computer on: December 19, 2010, 03:11:34 pm
well no because i dont know how to.
i found the VB.NET code on the playground for the libary but i cant get that to work in vb either
34  Forum 2005-2010 (read only) / Syntax & Programs / Re: Using files off of the computer on: December 19, 2010, 03:07:03 pm
when i fully finish all of the images on the code the space will be a lot more than the arduino can hold.
i want to keep these files on the computer and then the arduino can read them when it needs them
35  Forum 2005-2010 (read only) / Syntax & Programs / Re: Using files off of the computer on: December 19, 2010, 03:03:21 pm
so would what i put in be ok as thats the pathname. i never see the rx or tx lights go on when i do
36  Forum 2005-2010 (read only) / Syntax & Programs / Re: Using files off of the computer on: December 19, 2010, 03:00:29 pm
Ok and how would i do this?
37  Forum 2005-2010 (read only) / Syntax & Programs / Using files off of the computer on: December 19, 2010, 02:54:47 pm
hi
i would like to know how i can use .h files off of the computer and run them on the arduino while there still on the computer
my code is
[
Quote
#include <PCD8544.h>
#include "pudpud22.h"


// The dimensions of the LCD (in pixels)...
static const byte LCD_WIDTH = 84;
static const byte LCD_HEIGHT = 48;

// pictures dimensions
static const byte bad_w =84;
static const byte b_h = 48;

static PCD8544 lcd;

void setup() {
  lcd.begin(LCD_WIDTH, LCD_HEIGHT);
  lcd.clear();
    lcd.setCursor(0,0);
  lcd.drawBitmap(pudpud22, bad_w, bad_h);
}


void loop() {
 
}



38  Forum 2005-2010 (read only) / Syntax & Programs / Re: using files off the computer? on: December 05, 2010, 05:46:00 am
its not a TV its one of these

39  Forum 2005-2010 (read only) / Syntax & Programs / Re: using files off the computer? on: December 04, 2010, 07:09:07 am
alltogether all of the files are 300mb
could these be read of the computer
40  Forum 2005-2010 (read only) / Syntax & Programs / using files off the computer? on: December 04, 2010, 05:28:28 am
hey guys
unfortunately i do not have enough money for an sd card shield as i am saving up for a big screen.
i am planning to show lots of bmps on the screen that produce a video.
so far all of the .h conversions are over 100mb and i have more to convert.
is there a way i can get the h files to be read of the computer?
41  Forum 2005-2010 (read only) / Syntax & Programs / Re: Time Clock Testing For LCD on: November 29, 2010, 11:03:26 am
almost rewrote all code, took out some parts and made it faster ( hopefully )[timestamp=1291046601]

All finished new code updated at 2nd post. new video might be uploaded

thank you
ryan walmsley
42  Forum 2005-2010 (read only) / Syntax & Programs / Re: Time Clock Testing For LCD on: November 28, 2010, 03:38:40 pm
processing displays both input and output serial data.
looking at it im going to set pin 13 as on when time is known and off when time is lost
43  Forum 2005-2010 (read only) / Syntax & Programs / Re: Time Clock Testing For LCD on: November 28, 2010, 03:20:55 pm
yes i did
where it outputs to the monitor the waiting for sync
i tryed to change that to work over both the lines on the lcd

il be changing to use both serial and lcd for that and display on serial connection established, im currently rewriting the whole code by hand to understand it and make it shorter
44  Forum 2005-2010 (read only) / Syntax & Programs / Re: Time Clock Testing For LCD on: November 28, 2010, 02:48:19 pm
where it says waiting for sync i changed it to waiting for time and date which casued a few errors, i did not include it as of it being a bug
the video can be seen here
45  Forum 2005-2010 (read only) / Syntax & Programs / Re: Time Clock Testing For LCD on: November 28, 2010, 02:29:21 pm
all done

use this code please

Quote
/*
* lcdtimeserial.pde
*shows time on a display using LC & Time Library's
*requires time stamp to be sent via serial console or processing script
*lcd additon coded by Ryanteck.co.uk
*/
 // include time libary
#include <Time.h>  
// include liquid crystal libary
#include <LiquidCrystal.h>
// set pins for liquid crystal libary
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
// time sync to PC is HEADER followed by unix time_t as ten ascii digits
#define TIME_MSG_LEN  11  
// Header tag for serial time sync message
#define TIME_HEADER  'T'  
// ASCII bell character requests a time sync message 
#define TIME_REQUEST  7    
// run setup script
void setup()  {
// set seiral port
  Serial.begin(9600);
  //set function to call when sync required
  setSyncProvider( requestSync);  
    // set up the LCD's number of rows and columns:
  lcd.begin(16, 2);
  // print loading text
  lcd.setCursor(0, 0);
    lcd.print("Time LCD Script");
    lcd.setCursor(0, 1);
   lcd.print("By Ryanteck.co.uk");
   // delay for 5 seconds
   delay(5000);
  // write waiting for sync
  lcd.setCursor(0, 0);
    lcd.print("Waiting For Time");
    lcd.setCursor(0, 1);
   lcd.print("From Computer");
}
// end of setup
//start time update when time is grabbed
void loop(){    
  // check if time is uploaded from computer
  if(Serial.available() )
  {
    // proscess the time from computer
    processSyncMessage();
  }
  if(timeStatus()!= timeNotSet)  
  {
    // turn on pin 13 light if time is set
    digitalWrite(13,timeStatus() == timeSet); // on if synced, off if needs refresh  
    // set lcd to 0,0 to write time
   lcd.setCursor(0, 0);
    digitalClockDisplay();
   // set lcd to 0,0 to write date  
    lcd.setCursor(0, 1);
    digitaldateDisplay();  
    
  }
  delay(1000);
}


void digitalClockDisplay(){


  // display time on line 0
  //print time:
  lcd.print("Time: ");
  //print hour
  lcd.print(hour());
  // print :
  lcd.print(":");
  //print minute
  lcd.print(minute());
  // print :
  lcd.print(":");
  //print seconds
  lcd.print(second());
  
}
void digitaldateDisplay(){
  // display date on line 1
  //print date:
  lcd.print("Date:");
  //print
  lcd.print(" ");
  //print day
  lcd.print(day());
//print / 
  lcd.print("/");
   //print month
  lcd.print(month());
 //print /
  lcd.print("/");
  //print year
  lcd.print(year());
  lcd.println();
}

void printDigits(int digits){
  // utility function for digital clock display: prints preceding colon and leading 0
  Serial.print(":");
  if(digits < 10)
    Serial.print('0');
  Serial.print(digits);
}

void processSyncMessage() {
  // if time sync available from serial port, update time and return true
  while(Serial.available() >=  TIME_MSG_LEN ){  // time message consists of a header and ten ascii digits
    char c = Serial.read() ;
    Serial.print(c);  
    if( c == TIME_HEADER ) {      
      time_t pctime = 0;
      for(int i=0; i < TIME_MSG_LEN -1; i++){  
        c = Serial.read();          
        if( c >= '0' && c <= '9'){  
          pctime = (10 * pctime) + (c - '0') ; // convert digits to a number    
        }
      }   
      setTime(pctime);   // Sync Arduino clock to the time received on the serial port
    }  
  }
}

time_t requestSync()
{
  Serial.print(TIME_REQUEST,BYTE);  
  return 0; // the time will be sent later in response to serial mesg
}

Pages: 1 2 [3] 4 5 ... 10