OLED-Display mit SH1122-Controller und 256x64 Pixel

Harry
Moderator
Avatar
Gender:
Location: zwischen Augsburg und Ulm
Age: 59
Posts: 2084
Registered: 03 / 2003
Subject:

OLED-Display mit SH1122-Controller und 256x64 Pixel

 · 
Posted: 21.12.2022 - 13:30  ·  #1
Hallo Zusammen,

eins hab ich noch, ebenfalls von Miparo bekommen :): Controller SH1122, 2.08"

Im Code ein eigener Display-Refresh (chDispRefresh; deutlich schneller!) und der richtige GraphIOS - was man dann nimmt, bleibt jedem selber überlassen. Danke Miparo für deinen ASM-Code (ähnlich dem beim SSD1322-Controller).

Gruss
Harry

.... Displayschutzfolie ist noch drauf ;)

Zusätzliche Funktionen:
Code

Procedure SetContrast(co:Byte);
  Begin
    WriteOLED_C($81);                            // contrast control
    WriteOLED_C(co);                             // 0-255
  End SetContrast;
  
  
Procedure SetInverse(inv:Boolean);
  Begin
    If inv=true
      then
        WriteOLED_C($A7);                        // inverse
      else
        WriteOLED_C($A6);                        // normal
      EndIf;
  End SetInverse;


Procedure MirrorV(mir:Boolean);                  // mirror vertical
  Begin
    If mir=true
      then
        WriteOLED_C($A0);                        // mirrored
        WriteOLED_C($40);                        // Set Display Start Line: Lower 6 Bit
      else
        WriteOLED_C($A1);                        // normal
        WriteOLED_C($60);                        // Set Display Start Line: Lower 6 Bit
      EndIf;
  End MirrorV;


Procedure MirrorH(mir:Boolean);                  // mirror horizontal
  Begin
    If mir=true
      then
        WriteOLED_C($C0);                        // mirrored
      else
        WriteOLED_C($C8);                        // normal
      EndIf;
  End MirrorH;
You must be logged in or your permissions are to low to see this Attachment(s).
miparo
Administrator
Avatar
Gender:
Location: Germany
Age: 59
Posts: 956
Registered: 09 / 2007
Subject:

Re: OLED-Display mit SH1122-Controller und 256x64 Pixel

 · 
Posted: 22.12.2022 - 00:11  ·  #2
Hi Harry,
fleißig :)
Selected quotes for multi-quoting:   0

Registered users in this topic

Currently no registered users in this section

The statistic shows who was online during the last 5 minutes. Updated every 90 seconds.
MySQL Queries: 15 · Cache Hits: 13   50   63 · Page-Gen-Time: 0.02488s · Memory Usage: 2 MB · GZIP: on · Viewport: SMXL-HiDPI