Author Topic: What is 'shift' in example code  (Read 1872 times)


  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
What is 'shift' in example code
« on: February 06, 2017, 06:44:27 AM »
Hi All,
I have just started with an NHD-3.12-25664UMB3 display and downloaded the example code to drive it, thanks for that it's a great help in getting started quickly.

Some of the routines include use of a variable named Shift; e.g.

void Fill_Block_25664(unsigned char Data, unsigned char a, unsigned char b, unsigned char c, unsigned char d)

I just wonder what this variable represents as I can't find it defined anywhere in the code (which I quite understand is not meant to be a full program). I've tried taking it out but I'm not sure if the function is operating correctly without it.

Thanks for any assistance


  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: What is 'shift' in example code
« Reply #1 on: February 06, 2017, 09:34:27 AM »
Well I think I have answered my own question:
for some reason this display's left most column is numbered 28, but I've no idea why. I have found by trial and error that if I want to light up a pixel in this left most column I have to set ColumStartAddress to 0x1c.

Can anyone from Newhaven displays shed any light on this please? Is it somewhere in the data sheet and I've just missed it?



Sample Code Question for NHD‐C0220BiZ‐FS(RGB)‐FBW‐3VM LCD

Started by SteveCBoard Character LCDs

Replies: 2
Views: 6208
Last post July 31, 2014, 08:44:29 PM
by SteveC
NHD‐0420CW‐AG3 + I2C + PIC assembly code: trouble getting started

Started by RichardRBoard OLEDs

Replies: 4
Views: 6965
Last post December 17, 2015, 03:12:49 AM
by RichardR
Korean Hex GB code for OLED multi font display NHD-2.7-12864UMY3

Started by newhavenuserBoard OLEDs

Replies: 0
Views: 4156
Last post May 05, 2017, 01:17:45 PM
by newhavenuser
Demo code for NHD-0216K3Z-FS(RGB)-FBW-V3 module on an ATMEL ATtiny 2313A

Started by swulfBoard Customer Projects

Replies: 1
Views: 5197
Last post December 11, 2017, 07:56:43 AM
by Paul_B
Arduino demo code for running the NHD-0420DZW-AB5 OLED display via SPI

Started by llameroBoard OLEDs

Replies: 1
Views: 2884
Last post May 21, 2018, 11:28:30 AM
by Ted_M