Loading...
  Show Posts
Pages: 1 ... 30 31 [32] 33 34 ... 54
466  Using Arduino / Displays / Re: 122x32 graphical lcd on: June 08, 2012, 03:36:57 pm
Hi

A0 is the same as DI.
After review of your display datasheet, i have noticed, that there is no Enable (EN) line. Instead the chip select lines are used to transfer a byte. Unfortunately, this will require a special COM device (I have to rewrite some low level procedures).

The dimensions must be changed in
http://code.google.com/p/u8glib/source/browse/csrc/u8g_dev_ks0108_128x64.c
Redefine the two define statements:
Code:
#define WIDTH 128
#define HEIGHT 64

additional tasks include:
- review of the init sequence
- check the page transfer commands

I will also send a PM.

Oliver
467  Using Arduino / Displays / Re: 122x32 graphical lcd on: June 08, 2012, 08:56:43 am
It seems to be a SBN1661 controller. PDF is here: http://www.21icsearch.com/pdfdetil_C6DAED857A09381C.html
Similar to KS0108, but probably not fully compatible. I have never seen a AVR or Arduino lib for this display, but maybe u8glib could be modified for it. As a starting point, the ks0108 u8g device can be used (the page address command is identical):
http://code.google.com/p/u8glib/source/browse/csrc/u8g_dev_ks0108_128x64.c

Oliver
468  Using Arduino / Displays / Re: Nokia 1202 LCD SPI Problem - Arduino UNO on: June 05, 2012, 03:13:57 pm
By comparing the files from dangerousprototypes.com it seems that some init commands are missing in your code:
Code:
// v--- Likely these aren't needed...And might not be working :P ---v

lcdSpi(0xef); // Set refresh rate
lcdSpi(3); // 65 Hz

lcdSpi(0x3d); // Set Charge Pump multiply factor
lcdSpi(0); // 5x

lcdSpi(0x36); // Bias ratio 1/4

lcdSpi(0xad); // set contrast
lcdSpi(0x20 | 20); // 20/32

lcdSpi(0xe1);
lcdSpi(0);

I would at least try these commands. The charge pump controlls the on board voltage multiplier for the display. It is difficult to predict the exact value here, but for sure the LCD needs a much higher voltage than the arduino can provide.


Oliver
469  Using Arduino / Displays / Re: Nokia 1202 LCD SPI Problem - Arduino UNO on: June 04, 2012, 04:50:47 pm
Hi

The controller STE2007 seems to be compatible with the ST7565 controller. So maybe u8glib will work:
http://code.google.com/p/u8glib/wiki/device

Usually such displays require a much longer init sequence (I miss the charge pump setup in your code). Indeed, i have seen that different displays require different setup sequence. U8glib has included four different setups for four different display types with the same ST7565 controller:
So maybe one of the u8glib devices for the ST7565 is working for you. While testing u8glib may also need to change dimensions manually in the .c code of the corresponding device.

I would create an official Nokia 1202 device for u8glib if one of the ST7565 devices works, so that others can also use this display directly.

Note: U8glib requires 4 lines 8 Bit mode and expects a corresponding setup.

Oliver
470  Using Arduino / Programming Questions / Re: "char *buf" and "const char*" on: June 03, 2012, 06:57:52 pm
Quote
---------------------
    Arguments:

    Returns:
---------------------
verrry informative!

ok, got the point, but at least I have refered to Serial.print.  smiley-roll

And yes: Thanks to Nick!
Seems, that you became also a specialist for u8glib. Thanks for answering.

Oliver
471  Using Arduino / Programming Questions / Re: Error with char in U8glib on: May 30, 2012, 12:52:08 pm
The syntax of "print" is different to "drawStr" (see the u8glib reference here: http://code.google.com/p/u8glib/wiki/userreference#print )

Convert
Code:
u8g.drawStr( 0, 22, val);
to
Code:
u8g.setPrintPos(0, 22);
u8g.print(val);

I am sorry for the confusion, but print() has been written by the Arduino group. U8glib just inherits from that class.

Also this might be a good starting point: http://code.google.com/p/u8glib/source/browse/sys/arduino/PrintTest/PrintTest.pde

Oliver


472  Using Arduino / Programming Questions / Re: Error with char in U8glib on: May 29, 2012, 11:57:06 pm
Please use u8g.print() instead of u8g.drawStr().
u8g.print() has a buildin itoa functionality.

Oliver

473  Using Arduino / Programming Questions / Re: Error with char in U8glib on: May 29, 2012, 03:58:49 pm
Hi

The drawStr procedure only supports strings. To print a value, use the print procedure, which inherits from the Arduino library. The "Hello World" example with print is called "PrintTest" (http://code.google.com/p/u8glib/source/browse/sys/arduino/PrintTest/PrintTest.pde) and should be part of the examples. See also here: http://code.google.com/p/u8glib/wiki/userreference#print.

Oliver


474  Using Arduino / Displays / Re: TFT image Mirrored. Please Help on: May 29, 2012, 07:58:30 am
Under similar conditions i found, that there is a conflict between the TFT communication and the UART communication of the UNO. Solution was to disable the UART:

Code:
UCSR0B = 0;  // disable USART 0


Expect some problems with the upload of new ino files. If you disable the USART in the setup() procedure then upload of new ino files is only possible shortly after reset.

Oliver
475  Development / Other Software Development / Re: New Arduino library: MenuSystem on: May 22, 2012, 03:52:39 pm
ok, now I understand.

Thanks
Oliver
476  Development / Other Software Development / Re: New Arduino library: MenuSystem on: May 22, 2012, 01:20:41 am
So this means, I need to write a procedure which renders the menu on an output device. This procedure also has to take care to highlight the "current" menu item, correct?

Thanks for clarification,
Oliver


477  Development / Other Software Development / Re: New Arduino library: MenuSystem on: May 20, 2012, 03:43:53 pm
Hi

How do i display the menu? Is it intended to show the menu tree somewhere?

Oliver
478  Using Arduino / Displays / Re: glcd on: May 15, 2012, 05:13:55 am
Hi
I will repeat my answer and give some additional advice. But in principle, i think it would be more helpful to directly reply in an existing thread.
The answer was:
This display should be supported by
http://code.google.com/p/glcd-arduino/
and
http://code.google.com/p/u8glib/
The additional advice is:
1) go to one of the web sites
2) visit the documentation
3) check if the documentation meets your requirements
4) write a program, that uses one of these libs by calling primitives like "draw-line" to show the graph
Then we can help with the code, once you have started to write your app with the selected lib.

Oliver
479  Using Arduino / Displays / Re: Interfacing arduino with lcd on: May 14, 2012, 05:45:00 am
This display should be supported by
http://code.google.com/p/glcd-arduino/
and
http://code.google.com/p/u8glib/

Oliver
480  Using Arduino / Displays / Re: HOW TO: 8x16 Display using 128x64 LCD with ST7920 driver on SPI on: May 14, 2012, 03:51:43 am
Hi
I just want to mention, that u8glib supports the ST7920 and you can use any of the fonts from here: http://code.google.com/p/u8glib/wiki/fontsize.
Of course you could have the 21 chars per row...
Oliver
Pages: 1 ... 30 31 [32] 33 34 ... 54