Show Posts
Pages: 1 ... 50 51 [52] 53 54 ... 83
766  Using Arduino / Displays / Re: GLCD library version 3 on: October 29, 2012, 03:48:44 am
Quote
Are you using the IDE and what IDE version are you using?
If no IDE are you using -Werror ?
I got the same error with Arduino IDE 1.0 and 1.0.1
At least i have not intentionally changed/removed the avr-gcc. But maybe some modifications had forced the IDE to use the avr-gcc from the Ubuntu package.

Quote
I was planning on doing a quick turn release to put in Leonardo support, but I need to
get a few volunteers to test it as I don't have a Leonardo board.

I was about to do release testing for the GLCDv3 variant of M2tklib. I could do this testing with your GLCD update and a Leonardo board.

Oliver
767  International / Deutsch / Re: Lüftersteuerung PWM on: October 29, 2012, 12:18:33 am
Wenn ich die verlinkte Spec von sth77 richtig interpretiere, hängt es vom Hersteller ab, ob man den Lüfter komplett abschalten kann (siehe Seite 14 der Spec). Es ist also vollkommen spezifikationskonform, wenn man den Lüfter überhaupt nicht abschalten kann.

Mir fällt dabei nur ein, die Spannungsversorgung mittels Mosfet oder Relais ein und auszuschalten.

Oliver
768  Using Arduino / Displays / Re: GLCD library version 3 on: October 28, 2012, 11:37:53 pm

I found this statement in here: http://gcc.gnu.org/gcc-4.6/changes.html
Quote
On AVR, variables with the progmem attribute to locate data in flash memory must be qualified as const.

It seems, that PROGMEM requires "const" since gcc 4.6.x.

When I change
Code:
static uint8_t System5x7[] PROGMEM = {
to
Code:
static const uint8_t System5x7[] PROGMEM = {
in GLCD v3 fonts/SystemFont5x7.h, then this font compiles is find.

I think my local gcc was updated from 4.5.x to 4.7.x on my last Ubuntu update to 12.10.

I also assume, that the Windows Arduino version comes with an old gcc version. Arduino IDE for Windows will work as long as an old gcc version is shipped with it.

My suggestion is to update all GLCD v3 font definitions with the "const" keyword.
As example, this also happed to avr-libc: http://lists.nongnu.org/archive/html/avr-libc-commit/2012-01/msg00006.html

Oliver
769  Using Arduino / Displays / Re: GLCD library version 3 on: October 28, 2012, 01:54:59 pm
Hi Bill

I tried to compile HelloWorld which produces the following error:
Code:
In file included from /home/kraus/prg/arduino-1.0.1/libraries/glcd/fonts/allFonts.h:11:0,
                 from HelloWorld.cpp:18:
/home/kraus/prg/arduino-1.0.1/libraries/glcd/fonts/SystemFont5x7.h:48:28: error: variable ‘System5x7’ must be const in order to be put into read-only section by means of ‘__attribute__((progmem))’
In file included from /home/kraus/prg/arduino-1.0.1/libraries/glcd/fonts/allFonts.h:12:0,
                 from HelloWorld.cpp:18:

Maybe related to the previos post, because i assume i have to add some "const" keywords.

Appears with Arduino 1.0 and 1.0.1, ubuntu, latest release. I have also avr-gcc on my system, i am not sure which gcc is used by Arduino IDE.

Is it sufficient to add the "const" keywords in your code?

Thanks, Oliver
770  International / Deutsch / Re: MenuBackend und LCD 20x4 on: October 26, 2012, 03:26:37 pm
ok, leicht off topic: Ich habe von der MenuBackend keine Ahnung, aber
M2tklib (http://code.google.com/p/m2tklib/)
- kann Menü-einträge scrollen (wie anfangs angefragt, mittels M2_STRLIST)
- benutzt statische Menüs, die nicht erst erstellt werden müssen, sondern sofort nach dem startup da sind...

Grüße,
Oliver

771  Using Arduino / Displays / Re: Help with Winstar WG12232A-TMI-N#A on: October 26, 2012, 03:07:28 pm
Hi

U8glib should support the SBN1661 controller (it differs from KS0108 and ST7920). The constructor is:
U8GLIB_SBN1661_122X32 u8g(d0, d1, d2, d3, d4, d5, d6, d7, cs1, cs2, di, rw );
In your case (with A0 = DI):
U8GLIB_SBN1661_122X32 u8g(30, 31, 32, 33, 34, 35, 36, 37, 47, 48, 46, 49);

Oliver

772  Using Arduino / Displays / Re: Does someone got this OLED working? --> 128x64 Display Module SSD1306 on: October 24, 2012, 01:43:07 pm
For SPI (and probably also I2C) mode you also need to tie RD and RW to GND.
Also, a level shifter is required.

Software: U8glib supports SSD1306...

Oliver
773  Using Arduino / Displays / Re: U8glib: Graphics Lib for LCDs and OLEDs on: October 23, 2012, 01:50:16 pm


Quote
works as it should and sets the contrast. But I have a few questions. From what I’ve read in the datasheet the contrast value is a 6 bit value. I’m guessing the range 0 – 255 is divided down to 0 – 63?

I try to keep a range from 0 to 255 for the user interface. I think the actual range is from 0 to 127. It is scaled down in line 106
http://code.google.com/p/u8glib/source/browse/csrc/u8g_dev_uc1701_mini12864.c

Quote
I’ve begun investigating bdf fonts using FontForge. I looks like converting a font then modifying / drawing the bitmap for the size I want might be the best method, but I don’t really understand how point size converts to pixel size. I think I have a lot to learn before I can produce a usable font.

The SIZE parameter () of the BDF format defines the PointSize and Resolution of the BDF font. It is ignored by the bdf to u8g converter. The bitmaps are extracted and converted to the internal u8g format without any additional transformation.

Oliver
774  Using Arduino / Displays / Re: U8glib: Graphics Lib for LCDs and OLEDs on: October 22, 2012, 02:53:57 pm
Hi

I have applied your setting to the attached pre-release. I also added code for contrast setting. Hopefully everything works as expected. Feedback would be great. Thanks for supporting u8glib so far (Karma given...).

Fonts: If your font is available as .ttf or .bdf, then a conversion is no problem. Tools like fontforge are able to export .bdf
The tool otf2bdf can convert ttf into bdf.
To convert bdf to the internal font format, you need bdf2u8g:
http://code.google.com/p/u8glib/source/browse/tools/font/bdf2u8g/bdf2u8g.c
It compiles on windows and unix.

Oliver


775  Using Arduino / Displays / Re: U8glib: Graphics Lib for LCDs and OLEDs on: October 21, 2012, 05:14:35 pm
Hi

I have attached a version of u8glib with support for the MINI12864:
Code:
U8GLIB_MINI12864 u8g(13, 11, 10, 9);                    // SPI Com: SCK = 13, MOSI = 11, CS = 10, A0 = 9
It has been derived from the DOGM132 with adjusted dimensions.

Please let me know if this is ok or if some other adjustments are required.

Oliver

776  Using Arduino / Displays / Re: U8glib: Graphics Lib for LCDs and OLEDs on: October 21, 2012, 12:07:42 am
Hi

I am always happy to support new displays with u8glib.

This is my usual procedure for adding new devices:
1. Select a u8glib device which almost works
2. Rename this device to the new display
3. Fix display problems (garbage, display shift etc)
4  Fix contrast issues

What is your impression? Which u8glib device would be a good starting point for the "Mini12864"?

One of your pics shows a perfect u8glogo: http://www.flickr.com/photos/andrew-d/8089943789/in/photostream/
But you did not mention the u8glib device.

Additionally i wonder about the version number v12.
Official download is here: http://code.google.com/p/u8glib/downloads/list
Latest version of u8glib is 1.08

All in all, there are good pictures and existing u8glib devices mostly work, so it should not be a big problem
to fix issues with your display.

Oliver

777  Using Arduino / Project Guidance / Re: suggest tft lcd for arduino uno on: October 20, 2012, 12:26:04 am
Your display should be supported by an existing library. For example: http://henningkarlsen.com/electronics/library.php?id=52

Oliver
778  Using Arduino / Displays / Re: Need a little help getting started on: October 14, 2012, 01:02:36 am
The pins are labled very nicely. One of the pins seems to be labled with "PSB", so it is probably not a KS0108 display but instead a ST7920 based display. You can use http://code.google.com/p/u8glib/, also linked on the Arduino playground.

Google for "st7920 pdf" to find the datasheet.

Oliver
779  Using Arduino / Programming Questions / Re: How can I change a varible through my menu structure on: October 07, 2012, 04:04:25 pm
Maybe it is better to ask here:
http://arduino.cc/forum/index.php/topic,99693.0

Oliver
780  International / Deutsch / Re: Mini-Projekt: Pong auf einem 128x32-OLED-I2C-Display on: October 07, 2012, 02:38:09 pm
Tja, genau deswegen hatte es mich interessiert. 
Ich hab mir mal das Display beim Watterott.com auf meine merkliste gesetzt  smiley-wink

Besteht denn Interesse daran, dass u8glib das Adafruit 128x32 unterstützt?

Grüße,
Oliver
Pages: 1 ... 50 51 [52] 53 54 ... 83