Show Posts
Pages: [1] 2
1  Using Arduino / Storage / Re: SD/FAT library with the smallest possible code size on: March 22, 2013, 09:58:21 pm
I vote for the openForRead!
2  Using Arduino / Storage / Re: SdFat for 1.0.4 on: March 22, 2013, 09:53:23 pm
Hi! I used SdFat a long ago and by then it was very fast to open files by dir index.

Now we still have this function, but how to determine this index? The variable dirIndex_ is private and there isn't the function dirIndex()

I plan to store the indexes for a few files in a matrix and access them when some buttons are pushed


3  Development / Other Hardware Development / Re: Teensy 3.0 on: October 25, 2012, 09:43:17 am

I successfully connected teensy 3.0 to the WIZ812 Adaptor Kit (edit: via breadboard, of course) and WIZ812 Ethernet Module!

I can use DHCP and ran several of the server examples.

There's a problem for now, and I'm still looking into it, but if somebody else has something to add, it would be good!

The problem is that it can't connect to websites, as in DnsWebClient. I don't know yet if it's not resolving the DNS or if it's another issue...

here's my results:


UPDATE: It's not resolving DNS names, I used IPAddress serverName2(74,125, 234, 243) for google and it went through! I'll check my DNS server now...

UPDATE 2: It was my DNS server (but it works on my win7 machine...) Now I'm using openDNS and it works...

HTTP/1.0 200 OK
4  Using Arduino / Installation & Troubleshooting / Re: Arduino Uno R3 weird problem on: June 03, 2012, 05:36:57 pm

I also have been using arduino for ages, and never seen anythibg like it.
I'm having the same problem! I had it on the uno R3, but not on the uno R2. Instead of trying to solve it I bought an arduino mega 2560 R3 and guess: the same problem again!

I can program the board without problems, but if I unplug it from the USB and plug it back, it cannot communicate through the serial port (on the mega it works on Serial1 - I've attached a FTDI cable to it )

Of course I closed the serial program and opened it again. The rx and tx led's don't even blink

Any news about it? I'm inclined to say it's related to the (new) 16u2


5  Forum 2005-2010 (read only) / Interfacing / Re: Graphic LCD (KS0108) library now available on: August 01, 2010, 02:37:21 pm
@bperrybap about Thom:

he sent me this picture:

And after identifying the controller, this library worked:
6  Forum 2005-2010 (read only) / Interfacing / Re: Graphic LCD (KS0108) library now available on: July 30, 2010, 05:56:02 pm

I found this datasheet for your display (from the picture you sent me):

It's almost Pin out B, but it does not have the CS1 and CS2 lines.

I read somewhere that this controller (st7920) is compatible with the ks0108 instructions [edit] [update:maybe it's not][/edit] , but I'm not sure how to make it work here. Maybe you have to select somewhere that your LCD has only one chip and NO CS...

I'll try to learn more about it, but maybe someone could help...
7  Forum 2005-2010 (read only) / Interfacing / Re: Graphic LCD (KS0108) library now available on: July 19, 2010, 03:34:41 pm
In response to spinnay, I translated the code he sent me (PIC originally)
to the arduino, but something seems not to be quite right.

If someone else could help, please. I am not sure the SPI library works, if somebody could check it.

Where should I upload the code to make it available here?
8  Forum 2005-2010 (read only) / Interfacing / Re: Graphic LCD (KS0108) library now available on: July 08, 2010, 04:48:59 pm

I've been using a display with the KS0108B controller without problems!
If you want, send me the PDFs and I'll take a look, but I don't promise a fast response nor that I'll make it work, I'm not super skilled, but have done some code tranlations from pic to arduino.

Check your PMs
9  Forum 2005-2010 (read only) / Interfacing / Re: Graphic LCD (KS0108) library now available on: July 07, 2010, 11:46:44 pm

I never worked with this display, but found some products that share the same controller:

SED 156x series
Nokia 7110      96 x 65      monochr.      
NEC 21a      132 x 32
LPH7508      100 x 64       - display kit sold by pollin
Hyundai HP12542R      - display kit sold by pollin

This info was found here: wich seems to be a library writen in C for displays, but I still don't know if it's for use on a PC or on a microcontroller. [edit]UPDATE: it's for linux[/edit]

I would google the display names above with the arduino word to see what comes up.

some results:

10  Forum 2005-2010 (read only) / Interfacing / Re: Graphic LCD (KS0108) library now available on: June 29, 2010, 08:56:44 pm
Yeah, I was thinking about it, and scroll the pages won't work for me, as I plan to use a auto scale for the graph.

Didn't realise it could be only writes, how to do that?

I made a test routine scroling the graph and drawed it using the filled rectangle function, it's pretty fast, but I cleared the screen every update and it caused the graph to flicker.

My idea now is to rewrite it to update each column of the graph at a time, scanning the whole graph every update (1 a second or 1 every 5 seconds maybe). My first impulse was to draw a black rectangle for the value and above it a white rectangle to clear some eventual old value printed over there.  It should eliminate the flickering, I guess.

After I test it, will post the result if it works.

Other thing, I was reading the library and found some "fastWrite" functions, but I just took the .cpp file with me. Is it defined somewhere else? can I use it in my code for my I/O pins? Anyway, I'll google it after, but if you can give me the tip I'll appreciate it.
11  Forum 2005-2010 (read only) / Interfacing / Re: Graphic LCD (KS0108) library now available on: June 28, 2010, 12:31:15 pm
May I suggest scrolling graphics? That's what I need! Even if it's restricted to multiples of 8 pixels high.

How to I obtain the beta version of the library?

Last night I found sombody who did something like what I'm doing:

I'll try to code something today only drawing lines and verifiy if it's fast enough.

Sorry if I'm bugging you with all these questions. I swear I'm coding as well, but who's better than you to give me the hints?

Again, thanks a lot!

[edit]I'll try to scroll each page and then only add the last column of temp data. That's how you scroll text isn'it?[/edit]
12  Forum 2005-2010 (read only) / Interfacing / Re: Graphic LCD (KS0108) library now available on: June 28, 2010, 08:21:36 am
I read that todotani was modifying the libraryto use a frame buffer with the arduino mega - I'm using a mega.
The reply number is 124 I guess.

Yesterday I finally read one datasheet for the Lc7891 and my first impresion is that it has a text mode and a graphic mode. the fonts are just for the text mode. On the graphics mode it has a set pixel command that deals with individual pixels. Also read that the pixel are organized on horizontal bytes, what is different from the  ks0108.

Are you working on a new version? I didn't get it right from your message - or you mean by NEW the current version 2?

Thanks again!
13  Forum 2005-2010 (read only) / Interfacing / Re: Graphic LCD (KS0108) library now available on: June 28, 2010, 01:21:06 am
Ok, no rotation then... I would use it for a temperature logger so the y-axis would have more definition (128 pixels high)

My display is made by FORDATA, it's model is FDCG12864G and I'm not sure, but it's pinout seems to be different from the types "A" and "B" - I just followed the pin names and it worked OK from the beggining - tho I had to increase the delay a bit - it was missing some pixels

You can see a datasheet here:

I plan to scroll the graph, so this week I'll give a go on the frame buffer mod, but i saw it was made for a older version of the library, any news on that front?

I also found a display with a LC7981 controller, but didn't have the time to take a look on how it works. When I get to know, I'll share. Do you know if is it possible to adapt your library for that?

THANKS a lot for your good work and quick replies on this topic!!!

If you think I can help, just ask and I will
14  Forum 2005-2010 (read only) / Interfacing / Re: Graphic LCD (KS0108) library now available on: June 25, 2010, 09:25:37 pm

I'd love to see it integrated into the library! I just bought a LCD and the pixels are not square, so when I draw a circle I see an ellipse, so - to correct the aspect ratio, I'm using that function. Maube I'll code something for automatic aspect ratio correction...or maybe it's overkill...

I'd like to ask another question:

Is it possible to print the text rotated by 90 degrees?

 I'm thinking about using it on portrait orientation (width = 64 and height = 128)

15  Forum 2005-2010 (read only) / Interfacing / Re: Graphic LCD (KS0108) library now available on: June 24, 2010, 12:45:42 am
I just ported a routine to plot ellipses:

void PlotEllipse(long CX, long  CY, long XRadius,long YRadius, int color) {
// portted the algorithm found at
// by John Kennedy

  long X, Y;
  long XChange, YChange;
  long EllipseError;
  long TwoASquare,TwoBSquare;
  long StoppingX, StoppingY;
  TwoASquare = 2*XRadius*XRadius;
  TwoBSquare = 2*YRadius*YRadius;
  X = XRadius;
  Y = 0;
  XChange = YRadius*YRadius*(1-2*XRadius);
  YChange = XRadius*XRadius;
  EllipseError = 0;
  StoppingX = TwoBSquare*XRadius;
  StoppingY = 0;
  while ( StoppingX >=StoppingY ) //first set of points,y'>-1
    StoppingY=StoppingY+ TwoASquare;
    EllipseError = EllipseError+ YChange;
    if ((2*EllipseError + XChange) > 0 ) {
      StoppingX=StoppingX- TwoBSquare;
      EllipseError=EllipseError+ XChange;
  //{ first point set is done; start the 2nd set of points }

  Y = YRadius;
  X = 0;
  YChange = XRadius*XRadius*(1-2*YRadius);
  XChange = YRadius*YRadius;
  EllipseError = 0;
  StoppingY = TwoASquare*YRadius;
  StoppingX = 0;
  while ( StoppingY >=StoppingX ) //{2nd set of points, y'< -1}
    StoppingX=StoppingX + TwoBSquare;
    EllipseError=EllipseError+ XChange;
    if ((2*EllipseError + YChange) > 0 ) {
      StoppingY=StoppingY- TwoASquare;
      EllipseError=EllipseError+ YChange;
}; //{procedure PlotEllipse}

void Plot4EllipsePoints(long CX,long  CY, long X, long Y, int color){
  GLCD.SetDot(CX+X, CY+Y, color); //{point in quadrant 1}
  GLCD.SetDot(CX-X, CY+Y, color); //{point in quadrant 2}
  GLCD.SetDot(CX-X, CY-Y, color); //{point in quadrant 3}
  GLCD.SetDot(CX+X, CY-Y, color); //{point in quadrant 4}
Pages: [1] 2