Author
Topic: NHD‐1.5‐128128UGC3 some commands not working (Read 3282 times)

I'm having a problem with the NHD‐1.5‐128128UGC3 I bought to tinker with. On the whole most things work, but there are a few commands that don't with the example code on my display.

in particular, the X / Y position commands, 0x15 and 0x75, don't seem to move the position in memory, regardless of what values I put in. Also the 0xA4 (all off) 0xA5 (all on). This has been driving me batty for a few days now.

I can fill the screen with a colour, but the test page which is supposed to show a mix of colour bar and text doesn't display correctly. The colour bar does, but the text is gibberish.

I've attached the code below (broken across several messages as I can't post the whole thing in one post) I'm using, it's running on a SAMD20 Arm chip, and is taken from the driver from this site. I've tried commenting out a lot of stuff in the setup in case there was something conflicting there, but it doesn't seem to have made any difference.

//---------------------------------------------------------/*NHD_1_5_128128UGC3_example_uno.inoProgram for writing to Newhaven Display 128x128 Graphic Color OLED with SSD1351 controller.This code is written for the Arduino Uno R3.

(c)2014 Michael LaVine - Newhaven Display International, LLC.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.*///---------------------------------------------------------