Show Posts
Pages: 1 ... 47 48 [49] 50 51 ... 102
721  Using Arduino / Displays / Re: Help add support for HT1632 in u8glib on: May 27, 2013, 11:25:20 pm
Quote
EDIT: One last thing! u8g_dev_ht1632_26x16.c should be u8g_dev_ht1632_24x16.c! The panel is 24x16!

Oh, ok, I have renamed the device. For testing you also should restrict the WIDTH to 24.

Oliver
722  Using Arduino / Displays / Re: Help add support for HT1632 in u8glib on: May 27, 2013, 05:34:33 pm
I have integrated your code:
Code:
http://code.google.com/p/u8glib/source/browse/csrc/u8g_dev_ht1632_26x16.c
Maybe you can do a code review.
Pin numbers are hard coded at the moment.

I have also attached a new u8glib release, including the updated code. However in the past attachments to the forum seem to be  currupted.

Example .ino is:
Code:

#include "U8glib.h"

void setup(void)
{
}

void loop(void)
{
  u8g_t u8g;
 
  u8g_Init(&u8g, &u8g_dev_ht1632_26x16);
  u8g_FirstPage(&u8g);
  u8g_SetColorIndex(&u8g, 1);
  do  {
    u8g_SetFont(&u8g, u8g_font_7x13);
    u8g_DrawStr(&u8g, 0, 14, "ABCgdef");
  }while( u8g_NextPage(&u8g) );
  delay(1000);
}
Can you test the new code?

Oliver
723  Using Arduino / Displays / Re: Help add support for HT1632 in u8glib on: May 27, 2013, 05:14:09 pm
I have some other issues with the code.
ID values are missing. I assume
Code:
#define HT1632_ID_CMD 0x04
#define HT1632_ID_WR 0x05

Then: You used
Code:
writeDataMSB(3, HT1632_ID_WR); // Send "write to display" command
writeDataMSB(7, 0); // Send initial address
but writeDataMSB() requires three arguments. What will be the third argument?

Oliver
724  Using Arduino / Displays / Re: Help add support for HT1632 in u8glib on: May 27, 2013, 04:01:00 pm
Code:
writeDataLSB(8, value); 
Is this the write_data() procedure?

Oliver
725  Using Arduino / Displays / Re: Help add support for HT1632 in u8glib on: May 27, 2013, 01:15:10 pm
Well, the following two procedures need to be filled with some suitable code. For sure this will require some low level transfer functions also. I do not now if there is some need to send an init sequence. If not, then ht1632_init might be empty. The procedure ht1632_transfer_data receives data from u8glib and shoud transfer this data to the display. Are you able to provide such code? What additional information do you need?

Code:
void ht1632_init(void)
{
  /* init display once after startup */
}

/*
  page: 0=data contain lines 0..7, 1=data contain lines 8..16
  cnt: number of bytes in the buffer
  data: pointer to a buffer with "cnt" bytes.
*/
void ht1632_transfer_data(uint8_t page, uint8_t cnt, uint8_t *data)
{
  /* send data to the ht1632 */
}


Oliver
726  Using Arduino / Displays / Re: Help add support for HT1632 in u8glib on: May 26, 2013, 03:27:04 pm
Hi

I was in contact with a user of u8glib, but unfortunately the communication seems the be stopped. I was waiting for the user to provide the low level procedures for the u8glib device:
http://code.google.com/p/u8glib/source/browse/csrc/u8g_dev_ht1632_26x16.c

I would be glad to add such support to u8glib, but i need someone to
- provide low level procedures
- do the testing

My part will be
- create u8glib devices
- create beta releases
- add documentation

Oliver (u8glib)
727  Using Arduino / Displays / Re: i need some help in g lcd with a keypad 4x4 on: May 25, 2013, 04:15:45 pm
The basic problem of your code is this: The draw() procedure does not repeat exactly the same code. Instead the graphics commands depend on the result of the key events. This will never work.

Please have a look at http://code.google.com/p/u8glib/wiki/tmenu. The suggested solution is to separate draw() and keyboard polling (update() procedure in the referenced tutorial).

This should be done once in the setup:
Code:
Keypad customKeypad = Keypad( makeKeymap(hexaKeys), rowPins, colPins, ROWS, COLS);
 

"mod" should be global and the check for the key should be in an additional procedure:

Code:
mod = customKeypad.waitForKey();

Oliver
728  Using Arduino / Displays / Re: 12864ZW with u8glib - no DI pin?! on: May 20, 2013, 02:18:00 pm
PSB might have a pullup resistor.

Do the following: Apply
1 VSS 0V
2 VDD 5.0V 
Then measure the voltage between VSS and PSB. What is the voltage?
Then measure the voltage between VSS and Vout. Waht is the voltage?

Then do the following:
Connect
1 VSS 0V
2 VDD 5.0V 

Vout to the first pin of the variable potentiometer
V0 to the second pin of the var pot
VSS to the third pin of the var pot.

What do you see, when you turn the var pot from left to right?
Expected result: You should be able to turn on and off all the pixel. Is this possible?

Oliver
729  Using Arduino / Displays / Re: 12864ZW with u8glib - no DI pin?! on: May 20, 2013, 01:29:25 pm
Correct, one side to GND, other side to Vout and the middle pin (wiper) to V0. With the variable pot you should be able to turn all pixel on (contrast max) and off. Usually LCDs need a negative voltage for V0 which is provided by Vout.
Connecting pin 1 and 3 of the variable pot to 5V and GND will not work, because V0 needs negative voltage below GND.

Oliver

Edit: Not all GLCDs provide negative power at Vout. Best would be to measure the voltage of Vout vs. GND first.
730  Using Arduino / Displays / Re: 12864ZW with u8glib - no DI pin?! on: May 20, 2013, 12:24:38 pm
My personal guess is, that the variable pot is not connected correctly. Instead of the 5V, connect the var pot to Vout.

Oliver
731  Using Arduino / Displays / Re: 12864ZW with u8glib - no DI pin?! on: May 20, 2013, 12:39:09 am
Hi

You can use the serial interface (PSB = GND) with
Code:
U8GLIB_ST7920_128X64_1X(E, R/W, RS , rst)
where the four arguments are the Arduino pin numbers, which are connected to the corresponding pin of your display.

Oliver
732  Using Arduino / Displays / Re: 12864 Graphics LCD Wiring on: May 16, 2013, 01:56:43 pm
The lib seems to fit to the display. Will the original example also show such an error: spi_text_example.ino

BTW the latchPin seems to be the chip select pin.

But as dc42 mentioned... it is difficult to comment other peoples libs...

Oliver
733  International / Deutsch / Re: RTC 1307 Lib Problem on: May 11, 2013, 04:26:37 pm
Hi

Naja, damit wäre dann die Fehlermeldung erklärt.
Im Code weiter oben steht:
Code:
Time DS1307new::getTime()
In der eben geposteten .h Datei steht hingegen:
Code:
void getTime(void);

Irgendwie passen .h und .cpp dateien nicht zusammen. Was aber richtig ist, kann ich nicht sagen, da ja die Erweiterung nicht von mir stammt und auch nicht von mir getestet wurde. :-(

Eventuell genügt es die .h Datei entsprechend anzupassen.

Grüße,
Oliver
734  Using Arduino / Displays / Re: GoPro screen on: May 11, 2013, 12:59:05 am
The company EA offers LCDs for different light conditions. For example see the DOGS102, which might also fit for your project (page 2 of the pdf): http://www.lcd-module.com/eng/pdf/grafik/dogs102-6e.pdf.

So, for outdoor use i would suggest the transflective or reflective display type of the DOGS102.

Oliver


735  International / Deutsch / Re: RTC 1307 Lib Problem on: May 11, 2013, 12:37:47 am
Mir scheint, dass dieses getTime() eine Erweiterung der DS1307new ist, die nicht von uns stammt. Kannst Du mal deine .h Datei der modifizierten DS1307new hier posten. Ohne die .h Datei wird es schwierig den Fehler nachzuvollziehen.

Grüße,
Oliver
Pages: 1 ... 47 48 [49] 50 51 ... 102