Click here to Skip to main content
15,900,713 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: The magic of IAsyncEnumerable and IObservable in action (code show off, sorry) Pin
Super Lloyd18-Dec-21 18:16
Super Lloyd18-Dec-21 18:16 
GeneralIt had to happen at some point Pin
honey the codewitch18-Dec-21 11:18
mvahoney the codewitch18-Dec-21 11:18 
GeneralRe: It had to happen at some point Pin
Super Lloyd18-Dec-21 11:57
Super Lloyd18-Dec-21 11:57 
GeneralRe: It had to happen at some point Pin
honey the codewitch18-Dec-21 11:58
mvahoney the codewitch18-Dec-21 11:58 
GeneralRe: It had to happen at some point PinPopular
PIEBALDconsult18-Dec-21 12:12
mvePIEBALDconsult18-Dec-21 12:12 
GeneralRe: It had to happen at some point Pin
Super Lloyd18-Dec-21 12:21
Super Lloyd18-Dec-21 12:21 
GeneralRe: It had to happen at some point Pin
enhzflep19-Dec-21 10:19
enhzflep19-Dec-21 10:19 
GeneralRe: It had to happen at some point Pin
Randor 18-Dec-21 22:44
professional Randor 18-Dec-21 22:44 
Good morning,
honey the codewitch wrote:
I try to get my SPI driver working, and I have massive timing problems.
I'm looking at your st7789 code[^] and I don't see how it could ever work reliably in its current state. But it also looks like a relatively easy fix.

The datasheet[^] has a section labled 'Parallel Interface Timing Characteristics' which has a table containing the min/max wait and hold times. Why can't you just add a delay parameter to your command and data functions[^] and use os_delay_us() to wait for the period + hold.

Or you could just try taking the largest wait time and always wait for the maximum. For example, the largest write wait time I see in the st7789 datasheet appears to be 16ns.

Best Wishes,
-David Delaune
GeneralRe: It had to happen at some point Pin
honey the codewitch19-Dec-21 0:16
mvahoney the codewitch19-Dec-21 0:16 
GeneralRe: It had to happen at some point Pin
Randor 19-Dec-21 0:48
professional Randor 19-Dec-21 0:48 
GeneralRe: It had to happen at some point Pin
honey the codewitch19-Dec-21 1:05
mvahoney the codewitch19-Dec-21 1:05 
GeneralRe: It had to happen at some point Pin
Randor 19-Dec-21 1:24
professional Randor 19-Dec-21 1:24 
GeneralRe: It had to happen at some point Pin
honey the codewitch19-Dec-21 1:51
mvahoney the codewitch19-Dec-21 1:51 
GeneralRe: It had to happen at some point Pin
Randor 19-Dec-21 2:00
professional Randor 19-Dec-21 2:00 
GeneralRe: It had to happen at some point Pin
honey the codewitch19-Dec-21 2:38
mvahoney the codewitch19-Dec-21 2:38 
GeneralXamarin anyone? Pin
Gerry Schmitz18-Dec-21 7:42
mveGerry Schmitz18-Dec-21 7:42 
GeneralRe: Xamarin anyone? Pin
0x01AA18-Dec-21 9:25
mve0x01AA18-Dec-21 9:25 
GeneralRe: Xamarin anyone? Pin
Gerry Schmitz19-Dec-21 6:48
mveGerry Schmitz19-Dec-21 6:48 
GeneralRe: Xamarin anyone? Pin
Super Lloyd18-Dec-21 11:58
Super Lloyd18-Dec-21 11:58 
GeneralDo you remember that time? Pin
0x01AA18-Dec-21 5:17
mve0x01AA18-Dec-21 5:17 
GeneralRe: Do you remember that time? Pin
Mike Hankey18-Dec-21 6:25
mveMike Hankey18-Dec-21 6:25 
GeneralRe: Do you remember that time? Pin
0x01AA18-Dec-21 7:00
mve0x01AA18-Dec-21 7:00 
GeneralRe: Do you remember that time? Pin
RickZeeland18-Dec-21 6:58
mveRickZeeland18-Dec-21 6:58 
GeneralRe: Do you remember that time? Pin
obermd18-Dec-21 7:32
obermd18-Dec-21 7:32 
GeneralRe: Do you remember that time? Pin
Mike Hankey18-Dec-21 7:57
mveMike Hankey18-Dec-21 7:57 

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.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   494 votes