Recent Posts

Pages: 1 ... 5 6 [7] 8 9 10
Evaluation Tools / Re: NHD-FT81x-SHIELD
« Last post by CarlW on January 29, 2018, 02:15:38 PM »
Thanks Paul,
Are you able to share how you use the EVE editor? (if you use it)

Which version? What initial settings? How do you output it?

My main interest has been arduino but maybe there is a simpler platform?


Graphic LCDs / Re: NH7C working solution for Debian 8.7
« Last post by mhall on January 29, 2018, 05:15:54 AM »
Update: dts was compiled using the instructions on the
sudo apt update ; sudo apt install bb-cape-overlays
*** No core update as I already used the latest version from ***
cd /opt/scripts/tools
git pull
git clone
cd ./
sudo reboot

But this leaves me still with half a screen and no GPIO pins mapped? 
Graphic LCDs / NH7C working solution for Debian 8.7
« Last post by mhall on January 28, 2018, 10:37:41 AM »
Has anyone got this to work? I am getting a bit desparate finding a solution.
The display works well on the Debian 9.1 LXQT, nice display and touch works well. Also able to rotate both screen and touch to portrait mode.

The problem is that the GPIO ports are not "mapped" and the Adafruit_BBIO library can't be used. So reverted back to Debian 8.7 LXQT where the BBIO library works but now can't get the LCD to work.

Compiling the BB-BONE-NH7C-01-A0.dts gives an error, can't parse the tree. DTC version 1.4.1 .

We really like to use this screen in our product, but need to have a workable solution.

Any help is very much appreciated.

gr M
« Last post by semed on January 26, 2018, 08:57:21 PM »
Hello I recently got a NHD-3.12-25664UCB2-ND oled
So far I am having trouble to get it running
I have set up with SPI serial interface and run the initialisation on the data sheet but doesnt work
I am not sure what to do does anyone know where I can find the C initialisation code for this device?
Evaluation Tools / Re: NHD-7.0CTP-CAPE-N no picture
« Last post by mhall on January 24, 2018, 02:16:52 AM »
And for the dummies like me, a link how to compile into an dtbo :

By the way, the image 9.1 LXQT has got the dtbo file in /sys/firmware, not sure if you can just copy it.

@Newhaven: It would be nice as many people still work with 8.7 LXQT to have a description how to get the LCD to work. 
Evaluation Tools / Re: NHD-7.0CTP-CAPE use touch screen in portrait mode?
« Last post by mhall on January 24, 2018, 02:08:05 AM »
Hi Arnie,

Running Debian 9.1 on BB Black , I found the same as you. But if you add the TransformatinMatrix option it does rotate the Touch.
I found this solution in the past for the RPi3.  This transformation works well for CW rotation.
For BeagleBone TourchScreen rotation : add or change this 40-libinput.conf file (/usr/share/X11/xorg.conf.d/40-....)

Section "InputClass"
        Identifier "libinput touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
#       Option "SwapAxes" "true"
#       Option "RotationAngle" "90.0"
        Option "TransformationMatrix" "0 1 0 -1 0 1 0 0 1"

Hope it helps.
OLEDs / NHD-0216KZW-AG5 - serial interface - initialization
« Last post by bw on January 23, 2018, 10:06:07 AM »
I use mentioned above OLED 2x16 display with serial interface.
Everything is almost ok, but i cannot find initialization procedure for serial interface.
For now i tried with 8bit parallel initialization sequence, but sometimes my oled doesn't start. Is that timing problem or something else?

What is proper way of init this display in serial mode? This is not specified in datasheet.
OLEDs / Re: NHD-0420CW-AB3-ND Display variables
« Last post by DataL on January 22, 2018, 04:59:53 PM »
And after much struggling, here is how to display an array of strings that have been saved in PROGMEM:

Code: [Select]
const char welcome0[21] PROGMEM = "X     Arduino      X";
const char welcome1[21] PROGMEM = "        Uno         ";
const char welcome2[21] PROGMEM = "        with        ";
const char welcome3[21] PROGMEM = "X    NHD-0420-CW   X";
const char* const welcometable[] PROGMEM = {welcome0, welcome1, welcome2, welcome3};
char welcome[21];

void LCDwelcome()  {
  Serial.println(F("Arduino Uno with NHD-0420-CW"));
  byte r = 0;                         // Row index
  byte c = 0;                         // Column index
  command(0x01);                      // Clears display (and cursor home)
  delay(2);                           // After a clear display, a minimum pause of 1-2 ms is required
    for (int r = 0; r < 4; r++)  {
      strcpy_P(welcome, (char*)pgm_read_word(&(welcometable[r])));
        command(new_line[r]);            // Moves the cursor to the first column of line [i]
        for (c=0; c<COLUMN_N; c++)  {    // One character at a time,
          data(welcome[c]);              // Displays the corresponding string
}   }   }
OLEDs / Re: NHD-0420CW-AB3-ND Display variables
« Last post by DataL on January 18, 2018, 06:41:38 AM »
For anybody trying to solve this issue in the future:

Code: [Select]
// global variables
char textbuffer[21];         // 20 characters plus the end marker
const int value1Pin = A0;    // sensor 1 input
int Value1;                  // sensor 1 value

void output(void);
   Value1 = analogRead(value1Pin);      // Capture the value of the pin
   snprintf (textbuffer1, 21, "Value 1 =  %d   ", Value1);  // Where "Value 1 = " may be any text, and %d means insert the variable after the comma (Value 1)

   r= 0;                                    // For line 1 only ("1" for line 2, "2" for 3 etc)
      command(new_line[r]);                 // Moves the cursor to the first column of that line
      for (c=0; c<COLUMN_N; c++)  {         // One character at a time,
        data(textbuffer1[c]);  }            // Displays the corresponding string

If you want to place two values per line or add a unit like "C" or "PSI" after the value, and don't want the second string dancing around as the first changes in size (eg; "99" to "100"):

Code: [Select]
// Not forgetting these:
const int value2Pin = A1;    // sensor 2 input
int Value2;                  // sensor 2 value

void output(void);
   Value2 = analogRead(value2Pin);                          // Capture the value of the pin
   snprintf (textbuffer1, 21, "Val1= %d   ", Value1);       // As above
   snprintf (textbuffer1+10, 21-10, "Val2= %d   ", Value2); // Where textbuffer1+10 starts this addition to the buffer at character 11, 21-10 means it only adds 11 characters from this position.

With many thanks for the good folk on
OLEDs / Re: NHD-0420DZW-AY5 to replace NHD-0420DZ-FSW-FBW
« Last post by BenFR30 on January 18, 2018, 04:30:00 AM »

Thank you for your feedback,
I have an external supply, so i have enough poower.

I'm now trying to improve delay.
Thank you for your help.
Pages: 1 ... 5 6 [7] 8 9 10