Display interface – Kontron KTAM3874-pITX User Manual

Page 52

Advertising
background image

KTD-S0057-I

Page 48 Linux® Programming Examples (DebianTM)


KTAM3874/pITX Software Guide

10.3.2 I

2

C

TM

Display Interface

The graphic module from Electronic Assembly can also be driven via the I

2

C

TM

bus. The schematic is a bit

different. Please notice that this draft only serves for demonstration purposes but not for real applications.

Note: Please perform a RESET before you execute the test program.
The sourcecode is based on the SPI

TM

example (needs root rights):

/* I2C test program for
* Electronic Assembly graphic module eDIP128-6

* Copyright (c) 2013 Kontron Technology A/S

* 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.
*/

#include <errno.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <linux/types.h>

Advertising
This manual is related to the following products: