Show Posts
Pages: [1] 2 3 ... 104
1  Using Arduino / Displays / Re: Sainsmart 1.3 OLED I2C stays dark on: Today at 12:48:07 pm
Hi

U8glib expects the display at 0x3c.
If you see garbage on the screen with the adafruit lib, the display might have a SH1106 controller.

Oliver
2  Using Arduino / Displays / Re: U8glib: Graphics Lib for LCDs and OLEDs on: Today at 06:12:11 am

Using drawBox by changing its height on real-time makes its height increases from the Start position (y)  to the down and I wanted the option of when changing the height, the box increases its height from the start position to the top.. ..
Is there an option to do it or I will need to do by code?

Tks,  Oliver

Decrease y and increase height at the same time. This should do the job.

Oliver
3  Using Arduino / Displays / Re: U8glib: Graphics Lib for LCDs and OLEDs on: September 29, 2014, 11:21:10 pm

Quote
I don't know if you have used the u8g.drawBox

I'm using it from the middle of the display so the bar can grow to bottom and to top of the display.

The problem is that the bar only "grows" in direction of bottom .

I guess this is a programming problem, not a problem of drawBox(). Can you post your code?

Oliver
4  Using Arduino / Displays / Re: [SOLVED] Using u8glib with East rising ER-OLEDM028/32 (SSD1322) on: September 29, 2014, 04:39:03 pm
actually, the constructor is this:
Code:
    U8GLIB_NHD31OLED_BW(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
        uint8_t cs, uint8_t di, uint8_t rw = U8G_PIN_NONE, uint8_t reset = U8G_PIN_NONE)
WR is not used and will not be set by u8glib. You may decide not to use the reset.

Oliver

5  Using Arduino / Programming Questions / Re: remove unused characters from u8glib? on: September 29, 2014, 01:14:01 pm
Hi

Well, yes it is not so easy to modify the binary font format for u8glib. You need to work in the original font file and then do the conversion to the u8glib internal format.

First, maybe
Code:
u8g.setFont(u8g_font_helvR08r);
instead of
Code:
u8g.setFont(u8g_font_helvR08);
might at least save some flash memory.

All fonts should be available with "r" and "n" postifx, which use lesser glyphs.

The original source file for helvR08 is here
https://code.google.com/p/u8glib/source/browse/tools/font/bdf/helvR08.bdf

It is a plain text file. You can remove single glyphs from that file and recreate the binary format for u8glib.

Oliver
6  Using Arduino / Displays / Re: U8glib: Graphics Lib for LCDs and OLEDs on: September 29, 2014, 01:06:22 pm
I think your are right with your assumptions.

Currently the simplest way to create a new font is this:
Use fony (http://hukka.ncn.fi/?fony), a font editor where you can save the font as .bdf file. Then use bsf2u8g to create the binary font for u8glib.

Oliver
7  Using Arduino / Programming Questions / Re: How to Draw an up arrow on U8glib? on: September 26, 2014, 03:52:22 pm
The code at the left side gives the code for the leftmost symbol/glyph.
0x90 is the hex code for the "open right arrow". 144 is the decimal code, this means 144 (dec) is identical to 90 (hex).
From there you need to count to your desired symbol: Arrow up is the forth symbol. Count starts at 0, so it has 3.
0x90 + 3 = 0x93 or 144 + 3 = 147

Oliver

8  Using Arduino / Programming Questions / Re: How to Draw an up arrow on U8glib? on: September 26, 2014, 03:33:22 pm
Cursor Down: 0x8b or "\x8b"
Cursor Up: 0x93 or "\x93"

Oliver
9  Using Arduino / Programming Questions / Re: How to Draw an up arrow on U8glib? on: September 26, 2014, 01:20:30 pm
You can use the open source tool gimp for bitmap drawing. Save your result as XBM (which is actually c-code).
The XBM can be used by u8glib.

Reference: https://code.google.com/p/u8glib/wiki/userreference#drawXBM

Oliver
10  Using Arduino / Displays / Re: LCD Menu Library for ElecFreaks LCD Key Shield on: September 26, 2014, 01:16:02 pm
Is this shield supported by LiquidCrystal() library from the Arduino IDE?
If yes, then m2ktlib might be a suitable menu library.

Oliver
11  Using Arduino / Displays / Re: [SOLVED] Using u8glib with East rising ER-OLEDM028/32 (SSD1322) on: September 26, 2014, 01:10:22 pm
Hmm..., WR and reset should be fixed to a proper signal level, I think

Oliver
12  Using Arduino / Displays / Re: double (or other) sized Fonts on ST7565 128x64 GLED on: September 26, 2014, 01:06:40 pm
All examples list some constructors, but you man not only uncomment them, but also you need to provide the correct pin numbers.

For the constructors, see this page: https://code.google.com/p/u8glib/wiki/device
For the ST7565 there are several constructors listed. You may need to check them one by one. Howver all of them will display at least something as soon as your wiring is correct.

For example, use this:
Code:
U8GLIB_LM6063 u8g(sck, mosi, cs, a0, reset])
sck, mosi, cs and a0 are the pin numbers of your arduino board where you did connect the corresponding input of your display.
reset is optional (but recommended).

ok, i checked the datasheet, the actual names for your display are:
Code:
U8GLIB_LM6063 u8g(scl, si, cs, a0, reset])

Oliver



13  Using Arduino / Displays / Re: UC1610B with U8Glib / Can't interface correctly. on: September 26, 2014, 03:52:32 am
Quote
3.3v -> Resister -> reset pin -> capacitor -> GND
yes

Quote
SCK - 13
SDA/SDIN - 11
CS0 - 10
CD - 9
Yes, but you need to specify the pin numbers with the u8glib constructor (software spi). With software spi you could use any arduino pin numbers.

Oliver
14  Using Arduino / Displays / Re: UC1610B with U8Glib / Can't interface correctly. on: September 25, 2014, 11:56:30 pm
Except for the reset circuit, it looks correct. Often it is ok to connect the reset directly to 3.3V, However, sometimes an RC circuit is required. The schematic in one of my previous posts did contain a suitable reset circuit.

I have not verified all pins of your schematic against the datasheet of your display.


Oliver
15  Using Arduino / Displays / Re: double (or other) sized Fonts on ST7565 128x64 GLED on: September 25, 2014, 11:46:42 pm
Hi cabecinhas

Do the examples work for you? You need to uncomment the constructor for your controller and provide the correct pin numbers.

Oliver
Pages: [1] 2 3 ... 104