adafruit / Adafruit_SSD1325_Library

Monochrome OLED library (does not support grayscale)
Other
12 stars 9 forks source link

Change of resolution: u_int error #2

Closed DE8MSH closed 8 years ago

DE8MSH commented 8 years ago

Hi.

If I change the resolution in Adafruit_SSD1325.h file from `#if defined SSD1325_128_64

define SSD1325_LCDWIDTH 128

define SSD1325_LCDHEIGHT 64

endif`

to

`#if defined SSD1325_128_64

define SSD1325_LCDWIDTH 102

define SSD1325_LCDHEIGHT 80

endif`

I get this error message:

/arduino-1.6.11/libraries/Adafruit_SSD1325_Library/Adafruit_SSD1325.cpp:110:1: error: too many initializers for 'uint8_t [1020] {aka unsigned char [1020]}' }; ^ exit status 1 Fehler beim Kompilieren für das Board Arduino/Genuino Uno.

This is strange. The pixel number is less than the original number. 8160 instead of 192.

Uhm. What must I do to get rid of this error? Thank you.

DE8MSH commented 8 years ago

Ok. Found it. The problem wasn't the change of resolution, it was the bitmap of Adafruit picture.

Closed.