unit ULCD;
{******************************************************************************
 *
 *  LCD Smartie - LCD control software.
 *  Copyright (C) 2000-2003  BassieP
 *
 *  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.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 *  $Source: /root/lcdsmartie-cvsbackup/lcdsmartie/ULCD.pas,v $
 *  $Revision: 1.6 $ $Date: 2004/12/12 10:19:59 $
 *****************************************************************************}


interface

type

  TLCD = class(TObject)
  public
    procedure setPosition(x, y: Integer); virtual;
    procedure write(str: String); virtual;
    procedure customChar(chr: Integer; data: Array of Byte); virtual;
    procedure setbacklight(on: Boolean); virtual;
    function readKey(var key: Char) : Boolean; virtual;
    procedure setFan(t1, t2: Integer); virtual;
    procedure setGPO(gpo: Byte; on: Boolean); virtual;
    procedure setContrast(level: Integer); virtual;
    procedure setBrightness(level: Integer); virtual;
    procedure powerResume; virtual;
    procedure SetColor(Red: byte; Green: byte; Blue: byte); virtual;
    constructor Create; virtual;
    destructor Destroy; override;
  end;

implementation

constructor TLCD.Create;
begin
  inherited;
end;

destructor TLCD.Destroy;
begin
  inherited;
end;

procedure TLCD.powerResume;
begin
  // dummy procedure - do nothing
end;

procedure TLCD.setContrast(level: Integer);
begin
  // dummy procedure - do nothing
end;

procedure TLCD.setBrightness(level: Integer);
begin
  // dummy procedure - do nothing
end;

procedure TLCD.setGPO(gpo: Byte; on: Boolean);
begin
  // dummy procedure - do nothing
end;

procedure TLCD.setFan(t1, t2: Integer);
begin
  // dummy procedure - do nothing
end;

procedure TLCD.setbacklight(on: Boolean);
begin
  // dummy procedure - do nothing
end;

procedure TLCD.customChar(chr: Integer; data: Array of Byte);
begin
  // dummy procedure - do nothing
end;

procedure TLCD.setPosition(x, y: Integer);
begin
  // dummy procedure - do nothing
end;

procedure TLCD.setColor(Red, Green, Blue: byte);
begin
  // dummy procedure - do nothing
end;

function TLCD.readKey(var key: Char) : Boolean;
begin
  Result := False;
end;

procedure TLCD.write(str: String);
begin
  // dummy procedure - do nothing
end;

end.
