Show Posts
Pages: 1 ... 50 51 [52] 53 54 ... 100
766  International / Deutsch / Re: Suche grafisches Display on: April 01, 2013, 08:08:05 am
Wieso war da nichts passendes dabei? Was spricht konkret gegen das DOGXL160?
- I2C on board
- In etwa so groß wie gefordert (oder muss es quadratisch sein?)
- Die transflektiv und reflektiven Varianten sind auch unter Sonneneinstrahlung (besser: gerade mit Sonneneinstrahlung) optimal lesbar.

Die andere Frage ist dann noch, wie willst Du  denn das Display eigentlich ansprechen? Man sollte sich vorher immer etwas Gedanken machen, wie man das Display ansteuert.

Oliver
767  International / Deutsch / Re: Suche grafisches Display on: March 31, 2013, 05:47:42 pm
Also, wie ich schon im "Display" Subforum gepostet hatte, das DOGXL160 wäre ggf eine Option.
Denkbar wäre auch ein OLED (z.B. http://www.newhavendisplay.com/nhd2712864ucy3-p-3621.html)

Nett finde ich auch dieses Display: http://www.ebay.com/itm/128X128-Graphic-Matrix-LCD-Module-Display-Touch-Panel-/200402102679?pt=LH_DefaultDomain_0&hash=item2ea8e56997. Allerdings gibt es hierfür keine Lib.

Oliver
768  Using Arduino / Displays / Re: Searching graphic I2C-Display on: March 31, 2013, 05:12:12 pm
Maybe the DOGXL160 could be an option: http://www.lcd-module.de/produkte/dog.html.
However, http://code.google.com/p/u8glib/ only supports 4-wire SPI at the moment.

Oliver
769  Using Arduino / Displays / Re: m2tklib and encoder problem on: March 31, 2013, 03:39:26 pm
Hi

Maybe you can visit http://code.google.com/p/m2tklib/wiki/rotenc and check the ino files there. Will these files work better?

You can also tweak variables inside http://code.google.com/p/m2tklib/source/browse/dev/arduino/m2esarduino.c:
Try to use smaller values for
Code:
#define ROT_ENC_DEBOUNCE_VAL 3
#define ROT_ENC_EVENT_DIVISION 3

Finally you can rewrite "uint8_t m2_es_arduino_rotary_encoder(m2_p ep, uint8_t msg)" and replace the internal rotary encoder code with something more suitable: http://code.google.com/p/m2tklib/source/browse/dev/arduino/m2esarduino.c

Oliver


770  Products / Arduino Due / Re: LCD library for Due? on: March 31, 2013, 03:24:31 pm
Hi

Problem is: I can not test the KS0108. I do not have a level shifter. What i can say is, that the KS0108 works great with the UNO and other 5V processors.

The related code is inside "u8g_com_arduino_parallel.c"

Assuming, that your wiring is correct, then maybe the timing is wrong for the Due. So tests could include to add larger delays inside "u8g_com_arduino_parallel.c". Please let me know if you have success here.

Thanks,
Oliver
771  Using Arduino / Displays / Re: Simple menu m2tklib with example. on: March 25, 2013, 06:10:37 pm
ok, here is my solution. Not tested (my hardware is not available at the moment), but it compiles without error.

Basic idea is, that the values are polled within the main "loop()". Local menu screens with display the values to the user. M2_ROOT implement a button to jump back to the top level menu.

Code:
#include <glcd.h> // inform Arduino IDE that we will use GLCD library
#include "M2tk.h"
#include "utility/m2ghglcd.h"

uint8_t uiKeySelectPin = 53;
uint8_t uiKeyDownPin = 45;
uint8_t uiKeyUpPin = 47;
uint8_t uiKeyExitPin = 51;


//=================================================
uint32_t value_from_A0;
uint32_t value_from_A1;
uint32_t value_from_A5;

//=================================================
// Forward declaration of the toplevel element
M2_EXTERN_ALIGN(top_el_menu);


// show screen with my A0 pin value
M2_LABEL(el_a0_label, NULL, "A0");
M2_U32NUM(el_a0_u32, "c4r1", &value_from_A0);
M2_ROOT(el_a0_ok, NULL, " ok ", &top_el_menu);
M2_LIST(list_a0) = { &el_a0_label, &el_a0_u32, &el_a0_ok };
M2_VLIST(el_a0_vlist, NULL, list_a0);
M2_ALIGN(top_el_a0, "-1|1W64H64", &el_a0_vlist);


// show screen with my A1 pin value
M2_LABEL(el_a1_label, NULL, "A1");
M2_U32NUM(el_a1_u32, "c4r1", &value_from_A1);
M2_ROOT(el_a1_ok, NULL, " ok ", &top_el_menu);
M2_LIST(list_a1) = { &el_a1_label, &el_a1_u32, &el_a1_ok };
M2_VLIST(el_a1_vlist, NULL, list_a1);
M2_ALIGN(top_el_a1, "-1|1W64H64", &el_a1_vlist);


// show screen with my A5 pin value
M2_LABEL(el_temperature_label, NULL, "Temperature");
M2_U32NUM(el_temperature_u32, "c4r1", &value_from_A5);
M2_ROOT(el_temperature_ok, NULL, " ok ", &top_el_menu);
M2_LIST(list_temperature) = { &el_temperature_label, &el_temperature_u32, &el_temperature_ok };
M2_VLIST(el_temperature_vlist, NULL, list_temperature);
M2_ALIGN(top_el_temperature, "-1|1W64H64", &el_temperature_vlist);


// other voids that show any values



// Left entry: Menu name. Submenus must have a '.' at the beginning
// Right entry: Reference to the target dialog box (In this example all menus call the toplevel element again
m2_menu_entry m2_2lmenu_data[] =
{
  { "FFP", NULL },
  { ". volt", &top_el_a0 },
  { ". res", &top_el_a1},
  { "Temp",    &top_el_temperature },
 // etc..
  { NULL, NULL },
};

// The first visible line and the total number of visible lines.
// Both values are written by M2_2LMENU and read by M2_VSB
uint8_t m2_2lmenu_first;
uint8_t m2_2lmenu_cnt;

// M2_2LMENU definition
// Option l4 = four visible lines
// Option e15 = first column has a width of 15 pixel
// Option W43 = second column has a width of 43/64 of the display width

M2_2LMENU(el_2lmenu,"l4e15W43",&m2_2lmenu_first,&m2_2lmenu_cnt, m2_2lmenu_data,'+','-','\0');
M2_SPACE(el_space, "W1h1");
M2_VSB(el_vsb, "l4W2r1", &m2_2lmenu_first, &m2_2lmenu_cnt);
M2_LIST(list_2lmenu) = { &el_2lmenu, &el_space, &el_vsb };
M2_HLIST(el_hlist, NULL, list_2lmenu);
M2_ALIGN(top_el_menu, "-1|1W64H64", &el_hlist);

// m2 object and constructor
M2tk m2(&top_el_menu, m2_es_arduino, m2_eh_4bs, m2_gh_glcd_ffs);

void setup() {
  m2.setPin(M2_KEY_SELECT, uiKeySelectPin);
  m2.setPin(M2_KEY_NEXT, uiKeyDownPin);
  m2.setPin(M2_KEY_PREV, uiKeyUpPin);
  m2.setPin(M2_KEY_EXIT, uiKeyExitPin); 
}

void loop() {
 
  value_from_A0 = analogRead(A0);
  value_from_A1 = analogRead(A1);
  value_from_A5 = analogRead(A5);
 
  m2.checkKey();
  if ( m2.handleKey() ) {
      m2.draw();
  }
}

Oliver


Edit: Added "r1" to make the U32 fields read only.
772  Using Arduino / Displays / Re: Simple menu m2tklib with example. on: March 24, 2013, 03:50:20 pm
Hi

To write some code i need a more detailed specification. Let us start with the temperature. Do you want to display "in" and "out" temperature? Or do you need to edit and enter some target temperature?
Do you have some specific menu layout in mind?

Another question: Did you manage to compile an run other examples from m2tklib?

Oliver
773  Using Arduino / Displays / Re: Simple menu m2tklib with example. on: March 23, 2013, 02:45:50 pm
Nice, but currently for M2tklib there is no low level graphics driver for the SSD1963

Oliver
774  Using Arduino / Displays / Re: Simple menu m2tklib with example. on: March 23, 2013, 02:17:16 pm
Another option in your case is to use M2_TOGGLE for the temperature and perhaps M2_BUTTON for other function calls.
I assume (from your example) you need the GLCD variant... i will upload it u8glib download area.

Oliver
775  Using Arduino / Displays / Re: Simple menu m2tklib with example. on: March 23, 2013, 02:09:57 pm
Hi

Ok, i think i got your point. 2LMenu never was designed to switch things on and off. Instead it was designed to jump to sub menues. However you can use M2_SPACECB to call your void procedures. See the second example here:
http://code.google.com/p/m2tklib/wiki/elref#SPACECB

Another option is to use http://code.google.com/p/m2tklib/wiki/elref#X2LMENU. It will have a call back procedure so you can directly assign your procedures.

Both options will be available with 1.10, which has not yet been releases. I can upload a prerelease, but i need to know which variant is required for your project (u8glib? GLCD?)

Oliver
776  Using Arduino / Displays / Re: Simple menu m2tklib with example. on: March 23, 2013, 11:54:39 am
Hi

Your e-mail was placed in the spam folder by gmail. Not sure why this has happend. I am sorry for that.

Use M2_ROOT() element to create a menu. Each M2_ROOT can jump to one sub menu.
Have a look at "Rapunzel" example:

Code:
M2_LABEL(el_goto_title, NULL, "Rapunzel");
M2_ROOT(el_goto_part1, NULL, "Part 1", &el_part1);
M2_ROOT(el_goto_part2, NULL, "Part 2", &el_part2);
M2_LIST(list_menu) = {&el_goto_title, &el_goto_part1, &el_goto_part2};
M2_VLIST(el_menu_vlist, NULL, list_menu);
M2_ALIGN(el_top, "W64H64", &el_menu_vlist);

The two M2_ROOT elements are form a menu, where each of the M2_ROOT elements refer to different sub-menues.

Oliver


777  Using Arduino / Displays / Re: Big touchscreen display for arduino on: March 22, 2013, 02:52:43 pm
Maybe this:
http://www.ebay.com/itm/240X128-Grahpic-LCD-Module-Display-Touch-Panel-Screen-/190552828484
I recently added support for T6963 based displays to u8glib.

Oliver
778  Using Arduino / Programming Questions / Re: Menu for Display on: March 21, 2013, 03:13:34 pm
The menues should be portable, but for sure, positions need to be adjusted.

Oliver
779  Using Arduino / Programming Questions / Re: Menu for Display on: March 20, 2013, 03:08:48 pm
Hi

Wow, what a long thread... still ongoing  smiley-cool
The element M2_VSB(...) (=Vertical Scroll Bar) creates the scroll bar, so removing this element will remove the scroll bar.

Oliver

780  Using Arduino / Displays / Re: u8glib 1.11 reduce the size of the library on: March 20, 2013, 03:03:33 pm
Also note that fonts are available with different number of glyphs (full set or reduced set of characters). In those cases where you do not need character codes higher than 127, you could use the reduced font (postfix is 'r').

Oliver
Pages: 1 ... 50 51 [52] 53 54 ... 100