Show Posts
Pages: 1 ... 35 36 [37] 38 39 ... 83
541  Using Arduino / Programming Questions / Re: Menu for Display on: March 08, 2013, 12:40:14 pm
It is difficult to understand your question. Maybe you could send the display results along with the code.
But in general: The x/y position of an element is not an absolute position. Instead, it is relative to the origin of the XY List. This could explain your different results.

Oliver
542  Using Arduino / Programming Questions / Re: Menu for Display on: March 07, 2013, 05:15:02 pm
ok, got your point. I personally think that both seperator are overwritten by elements at the same position (x17y1 and x17y3).
For example:
M2_LABELFN(el_v_lbl_SMonthStart,     fmt_x17y3c2, lbl_SMonthStart);
and
M2_LABEL(el_v_Timer_Specific_Sep_Start, fmt_x17y3b1, "/");
If i interpret your fmt statement correctly, than both elements are at the same position.

Oliver
543  Using Arduino / Programming Questions / Re: Menu for Display on: March 06, 2013, 01:23:58 pm
Quote
the separator into view timer is missing

I do not understand what you mean  smiley-sad
Is it a compiler error? If yes, please provide the full error message.

Oliver
544  Using Arduino / Programming Questions / Re: Menu for Display on: March 05, 2013, 01:20:40 pm
Hi

Fix is easy: You need to use m2_eh_6bs instead of m2_eh_4bs handler. See the function reference manual.

Oliver
545  Using Arduino / Programming Questions / Re: Menu for Display on: March 04, 2013, 05:59:38 pm
Hi

The code contains a programming error, use this:
Code:
const char *label_test(m2_rom_void_p element)
{
  static char s[4];
  sprintf(s,  "%02d", array[u8dev][4]);
  Serial.println(s);   // or LCD.print(s);
  return s;
}

Then, i would strongly suggest to read tutorial 8: http://code.google.com/p/m2tklib/wiki/t08

Oliver
546  Using Arduino / Displays / Re: U8GLIB and bitmap creation/display on: March 02, 2013, 05:49:58 pm
Quote
Could you explain me why or point me where to read about it?

Good question. Some years back, "const" was not required. For example this page http://www.nongnu.org/avr-libc/user-manual/pgmspace.html does not mention, that "const" is required along with PROGMEM. Indeed examples at http://www.nongnu.org/avr-libc/user-manual/pgmspace.html are wrong (meanwhile?).

After some search, i found this page: http://gcc.gnu.org/onlinedocs/gcc-4.7.1/gcc/Named-Address-Spaces.html
This is part of the release doc for gcc 4.7.1 which explains, that the "const" keyword is required for "read only data" like PROGMEM area.

Oliver
547  Using Arduino / Displays / Re: U8glib: Graphics Lib for LCDs and OLEDs on: March 02, 2013, 04:33:30 pm
I have finished release v1.11:
  * Support for T6963
  * Support for Arduino Due
  * Sleep Mode
  * 4x mode for ST7920
  * New C++ interface for ST7920

http://code.google.com/p/u8glib/

Oliver
548  Products / Arduino Due / Re: Arduino Due libraries (official and 3rd party) on: March 02, 2013, 04:30:30 pm
The graphics LCD (ST7565, UC1701, KS0108, ...) and OLED  (SSD1306, ...) library "U8glib" includes support for Arduino Due.

http://code.google.com/p/u8glib/   
549  International / Deutsch / Re: SD Library zu langsam.... on: March 02, 2013, 03:04:25 pm
Hi

SdFat war viel schneller und belegt weniger Flash-ROM.

http://code.google.com/p/sdfatlib/downloads/list

Oliver
550  Using Arduino / Displays / Re: I2C 0.91" 128x32 Monochrome OLED display module on: March 02, 2013, 01:47:56 pm
I made another mistake in the code, here is the fixed version:
Code:
#include "U8glib.h"

U8GLIB_SSD1306_128X32 u8g(U8G_I2C_OPT_NONE);

void draw(void) {
  u8g.setFont(u8g_font_unifont);
  u8g.drawStr( 0, 22, "Hello World!");
}

void setup(void) {
}

void loop(void) {
  u8g.firstPage(); 
  do {
    draw();
  } while( u8g.nextPage() );
 
  // rebuild the picture after some delay
  delay(500);
}

Oliver
551  Using Arduino / Displays / Re: I2C 0.91" 128x32 Monochrome OLED display module on: March 02, 2013, 01:13:37 pm
You need to download and install u8glib http://code.google.com/p/u8glib/downloads/list. I would suggest to use the prerelease.

Quote
Is this all what I need, should I include wire lib.?
Yes, this is all you need and no, you do not need to include wire lib (u8glib has its own I2C subsystem)

Oliver
552  Using Arduino / Displays / Re: U8GLIB and bitmap creation/display on: March 02, 2013, 12:58:50 pm

Try this:
- Replace "static" with "const" or
- Remove "static" or
- Add "const"

Oliver
553  Using Arduino / Displays / Re: I2C 0.91" 128x32 Monochrome OLED display module on: March 02, 2013, 12:56:15 pm
This might work, but it has not been tested with your display.

Code:
#include "U8glib.h"

U8GLIB_SSD1306_128X32 u8g();

void draw(void) {
  u8g.setFont(u8g_font_unifont);
  u8g.drawStr( 0, 22, "Hello World!");
}

void setup(void) {
}

void loop(void) {
  u8g.firstPage(); 
  do {
    draw();
  } while( u8g.nextPage() );
 
  // rebuild the picture after some delay
  delay(500);
}

Oliver

EDIT: Fixed constructor call.
554  Using Arduino / Displays / Re: I2C 0.91" 128x32 Monochrome OLED display module on: March 02, 2013, 11:34:45 am
1. Locate SDA and SCL pins for your board: http://www.arduino.cc/en/Reference/Wire
2. Locate SDA and SCL pins for your display (see ebay link)
3. Connect display with board
4. Find and install a library which supports the SSD1306 OLED (u8glib might work)

Oliver
555  Using Arduino / Displays / Re: U8glib: Graphics Lib for LCDs and OLEDs on: March 02, 2013, 11:18:08 am
Hi

Can you provide a link to the display? This would help a lot.

In general displays with SPI interface are usually connected like this:




Oliver
Pages: 1 ... 35 36 [37] 38 39 ... 83