Click here to Skip to main content
15,887,135 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.

 
PraiseRe: People at my door.. Pin
Eddy Vluggen12-Feb-22 12:17
professionalEddy Vluggen12-Feb-22 12:17 
GeneralRe: People at my door.. Pin
englebart12-Feb-22 11:21
professionalenglebart12-Feb-22 11:21 
GeneralRe: People at my door.. Pin
Eddy Vluggen12-Feb-22 12:20
professionalEddy Vluggen12-Feb-22 12:20 
GeneralRe: People at my door.. Pin
Slacker00712-Feb-22 22:32
professionalSlacker00712-Feb-22 22:32 
AnswerRe: People at my door.. Pin
Eddy Vluggen12-Feb-22 23:38
professionalEddy Vluggen12-Feb-22 23:38 
GeneralRe: People at my door.. Pin
obermd14-Feb-22 6:34
obermd14-Feb-22 6:34 
GeneralRe: People at my door.. Pin
Eddy Vluggen14-Feb-22 8:58
professionalEddy Vluggen14-Feb-22 8:58 
GeneralYou win some, you lose some. Pin
honey the codewitch11-Feb-22 15:02
mvahoney the codewitch11-Feb-22 15:02 
I'm not sure how I feel about this.

I made some new video drivers that are decoupled from the bus type they use.

This is because for example, an ILI9341 display may come in serial (SPI) or parallel (8-bit) bus styles.

An SSD1306 display comes in serial SPI or serial I2C buses.

So I made such that you have 3 different types of busses - a parallel 8-bit bus, an SPI serial bus, and an I2C serial bus.

You can plug those into the display driver for your device like the SSD1306, the ST7789 or the ILI9341

That way you can select the display type independently of the style of connection it uses.

So for I2C for example, you declare a tft_i2c bus:
C++
using bus_type = tft_i2c<LCD_PORT,0x3C,PIN_NUM_SDA,PIN_NUM_SCL,0x0,0x40,400000>;


And then you can feed that to your driver declaration:

C++
using lcd_type = ssd1306<LCD_WIDTH,LCD_HEIGHT,bus_type,LCD_VDC_3_3,PIN_NUM_DC,PIN_NUM_RST,true>;
// declare it
lcd_type lcd;


I wrote the SSD1306 and the I2C bus first. It's still not working. But when I simply swapped out the I2C bus for an SPI bus it worked with my SSD1306 SPI device on the first try.

But it still gives me a shrunken display port and dropped scanlines on I2C. Amazing that I wrote the non working code first, and plugged it into my SPI bus and it worked right off though. my SSD1306 driver was developed entirely blind.
Real programmers use butterflies

GeneralRe: You win some, you lose some. Pin
jmaida11-Feb-22 16:07
jmaida11-Feb-22 16:07 
GeneralRe: You win some, you lose some. Pin
honey the codewitch11-Feb-22 16:09
mvahoney the codewitch11-Feb-22 16:09 
JokeRe: You win some, you lose some. Pin
Daniel Pfeffer12-Feb-22 19:37
professionalDaniel Pfeffer12-Feb-22 19:37 
GeneralRe: You win some, you lose some. Pin
honey the codewitch12-Feb-22 19:38
mvahoney the codewitch12-Feb-22 19:38 
JokeMy neighbors mother-in-law just died Pin
oofalladeez34311-Feb-22 14:18
professionaloofalladeez34311-Feb-22 14:18 
GeneralAn Experiment with OneDrive Pin
TNCaver11-Feb-22 11:15
TNCaver11-Feb-22 11:15 
GeneralRe: An Experiment with OneDrive Pin
Mircea Neacsu11-Feb-22 12:52
Mircea Neacsu11-Feb-22 12:52 
GeneralRe: An Experiment with OneDrive Pin
TNCaver17-Feb-22 3:09
TNCaver17-Feb-22 3:09 
GeneralRe: An Experiment with OneDrive Pin
Mircea Neacsu17-Feb-22 3:31
Mircea Neacsu17-Feb-22 3:31 
GeneralRe: An Experiment with OneDrive Pin
RickZeeland11-Feb-22 19:30
mveRickZeeland11-Feb-22 19:30 
GeneralRe: An Experiment with OneDrive Pin
TNCaver17-Feb-22 3:11
TNCaver17-Feb-22 3:11 
GeneralRe: An Experiment with OneDrive Pin
Gerry Schmitz12-Feb-22 6:21
mveGerry Schmitz12-Feb-22 6:21 
GeneralRe: An Experiment with OneDrive Pin
Daniel Pfeffer12-Feb-22 10:39
professionalDaniel Pfeffer12-Feb-22 10:39 
GeneralRe: An Experiment with OneDrive Pin
Nelek13-Feb-22 2:10
protectorNelek13-Feb-22 2:10 
GeneralRe: An Experiment with OneDrive Pin
TNCaver17-Feb-22 3:20
TNCaver17-Feb-22 3:20 
GeneralRe: An Experiment with OneDrive Pin
kmoorevs13-Feb-22 7:58
kmoorevs13-Feb-22 7:58 
GeneralRe: An Experiment with OneDrive Pin
TNCaver17-Feb-22 3:21
TNCaver17-Feb-22 3:21 

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.