Author Topic: Using NHD-C0216CiZ-FSW-FBW-3V3 on I2C on Linux  (Read 815 times)

ABSysacom

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Using NHD-C0216CiZ-FSW-FBW-3V3 on I2C on Linux
« on: November 08, 2016, 03:56:00 PM »
Hi,
I am using the NHD-C0216CiZ-FSW-FBW-3V3 LCD on a custom board connector to a CPU with I2C. The CPU run a linux software. On the user sapce, I open the device the open command on /dev/i2c-1 and use the ioctl() function to write to the I2C port.

I am having difficulty to initilize the LCD. Sometime it work and sometime it does not work. When it does not work, at the 8th byte, the SDA pin is stuck at 1.1v and I am not able to write to the port anymore. It always return an error "Bus is busy".
In the code example at the end of the datasheet, there is some delay added between some write of byte. If I try to do it on linux, the driver will automatically add the start/stop/slave addr write sequence. Then the LCD never work.
Anyone have ever tried to use this LCD with Linux?

 

Using Linux i2cdetect with NHD‐C0220BiZ‐FSW‐FBW on Raspberry Pi

Started by russkBoard Character LCDs

Replies: 10
Views: 5308
Last post November 23, 2017, 06:58:52 AM
by tolikkk
Linux | Device Tree | NHD ‐ 4.3 ‐ 480272EF

Started by Alias_AliasBoard TFTs

Replies: 5
Views: 4532
Last post March 24, 2015, 07:45:50 AM
by Paul_B
NHD-3.5-320240MF-ATXL#-CTP-1 Ft5x06 Linux device tree

Started by rajarajan.rBoard TFTs

Replies: 1
Views: 2434
Last post July 05, 2016, 01:21:43 PM
by UART
Capacitive touch problems under linux (FT5x06)

Started by vpdBoard TFTs

Replies: 20
Views: 20154
Last post July 23, 2014, 02:01:31 AM
by vpd
NHD-5.0-800480TF-ATXL linux driver code

Started by carlovalBoard TFTs

Replies: 1
Views: 2279
Last post March 27, 2015, 08:20:26 AM
by Paul_B