Author Topic: What is 'shift' in example code  (Read 663 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: 3002
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: 3131
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: 647
Last post May 05, 2017, 01:17:45 PM
by newhavenuser
Resistive/Capacitive Touch Screen - Sample Code

Started by daotaBoard TFTs

Replies: 1
Views: 1227
Last post July 14, 2016, 07:57:46 AM
by Saurabh_B
Use of Timing characteristics in the initialization code of the display

Started by ShabdaBoard TFTs

Replies: 1
Views: 2920
Last post May 20, 2014, 08:00:39 AM
by Michael_L