Click here to Skip to main content
15,881,709 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Visual Studio 2019 always crashes into the dock? Pin
Chris Losinger29-Apr-21 2:46
professionalChris Losinger29-Apr-21 2:46 
GeneralRe: Visual Studio 2019 always crashes into the dock? Pin
kmoorevs29-Apr-21 3:50
kmoorevs29-Apr-21 3:50 
GeneralOnly Aldrin left now. Pin
OriginalGriff28-Apr-21 8:03
mveOriginalGriff28-Apr-21 8:03 
GeneralRe: Only Aldrin left now. Pin
jeron128-Apr-21 8:05
jeron128-Apr-21 8:05 
GeneralRe: Only Aldrin left now. Pin
  Forogar  28-Apr-21 9:39
professional  Forogar  28-Apr-21 9:39 
GeneralRe: Only Aldrin left now. Pin
DRHuff28-Apr-21 12:01
DRHuff28-Apr-21 12:01 
GeneralRe: Only Aldrin left now. Pin
Gary R. Wheeler1-May-21 9:39
Gary R. Wheeler1-May-21 9:39 
RantWhen datasheets fail Pin
honey the codewitch28-Apr-21 5:38
mvahoney the codewitch28-Apr-21 5:38 
I've been trying to get the SSD1306 device working with my library, only come to find out that the way the framebuffer keeps its memory is bizarre.

Basically, it's monochrome, so 8 pixels are packed into a byte. But they're packed *vertically*

It appears as though the screen is divided into vertical banks, 1 byte high that hold 8 rows, but those are arranged left to right.

Whoever designed it that way should be punished.

Severely.

Anyway, I figured out a way to change the memory addressing mode, and on top of doing that I flip the whole screen from landscape to portrait and address it that way, and I get some sort of sane horizontal bitmapping, even if my screen is now 64x128 instead of 128x64

However, that mapping mode isn't quite working the way I'd expect.

SSD1306, error - YouTube[^]

I had to post a 3 second video instead of a pic because of the camera->screen refresh interference causing tearing (you'll see what i mean)

I tried to draw a 64x128 hatched rectangle with a solid white border.

That hatched square is supposed to take up the entire screen. It does not, and the border if you look closely, does not appear along the left edge of the screen like it should, and the other side appears but is offset by several pixels as if the screen is wrapping around and offset by like 20 or so.

I can't decipher the datasheet on this addressing mode. It's not clear at all, but it's the closest mode to sanity I've managed to find.

My other option is to do what the other drivers do, and create a special frame buffer in the weird format, then blt everything to that, and force you to call an update() method explicitly to draw it to the screen.

I wanted you to be able to create a bitmap and then use that as your framebuffer, and not have an extra hidden framebuffer stealing RAM.

But in order to do that I need to know how this elephanting memory addressing scheme works, and why it's giving me this output.

I hate datasheets.
Real programmers use butterflies

GeneralRe: When datasheets fail Pin
Storm-blade28-Apr-21 5:57
professionalStorm-blade28-Apr-21 5:57 
GeneralRe: When datasheets fail Pin
honey the codewitch28-Apr-21 5:59
mvahoney the codewitch28-Apr-21 5:59 
GeneralRe: When datasheets fail PinPopular
Mircea Neacsu28-Apr-21 7:29
Mircea Neacsu28-Apr-21 7:29 
GeneralRe: When datasheets fail Pin
honey the codewitch28-Apr-21 8:00
mvahoney the codewitch28-Apr-21 8:00 
GeneralRe: When datasheets fail Pin
PIEBALDconsult28-Apr-21 9:33
mvePIEBALDconsult28-Apr-21 9:33 
GeneralRe: When datasheets fail Pin
CPallini28-Apr-21 21:13
mveCPallini28-Apr-21 21:13 
GeneralThought of the Day Pin
OriginalGriff28-Apr-21 4:18
mveOriginalGriff28-Apr-21 4:18 
GeneralRe: Thought of the Day Pin
W Balboos, GHB28-Apr-21 4:27
W Balboos, GHB28-Apr-21 4:27 
GeneralRe: Thought of the Day Pin
honey the codewitch28-Apr-21 5:21
mvahoney the codewitch28-Apr-21 5:21 
GeneralRe: Thought of the Day Pin
rnbergren28-Apr-21 5:52
rnbergren28-Apr-21 5:52 
GeneralRe: Thought of the Day Pin
jeron128-Apr-21 6:40
jeron128-Apr-21 6:40 
GeneralRe: Thought of the Day Pin
DRHuff28-Apr-21 12:03
DRHuff28-Apr-21 12:03 
GeneralRe: Thought of the Day Pin
Daniel Pfeffer28-Apr-21 16:39
professionalDaniel Pfeffer28-Apr-21 16:39 
GeneralWSO CCC 2021-04-28 Pin
5teveH27-Apr-21 22:14
5teveH27-Apr-21 22:14 
GeneralRe: WSO CCC 2021-04-28 Pin
OriginalGriff27-Apr-21 22:29
mveOriginalGriff27-Apr-21 22:29 
GeneralRe: WSO CCC 2021-04-28 Pin
pkfox27-Apr-21 22:40
professionalpkfox27-Apr-21 22:40 
GeneralRe: WSO CCC 2021-04-28 - Winner Pin
5teveH27-Apr-21 22:48
5teveH27-Apr-21 22:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.