vpominchuk / lightmeter

Lightmeter/Flashmeter for photographers, based on Arduino.
GNU General Public License v3.0
97 stars 32 forks source link

my oled display stretched #3

Closed kuromatiku closed 4 years ago

kuromatiku commented 4 years ago

Hello, my oled display is stretched so the shutter speed won't displayed. how to fix this?

thanks

119430

kuromatiku commented 4 years ago

it fixed just add

#define SCREEN_WIDTH 128 // OLED display width, in pixels
#define SCREEN_HEIGHT 64 // OLED display height, in pixels

and change Adafruit_SSD1306 display(OLED_MOSI, OLED_CLK, OLED_DC, OLED_RESET, OLED_CS); to

Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT,
  OLED_MOSI, OLED_CLK, OLED_DC, OLED_RESET, OLED_CS);