mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
+ set of macros, not special
This commit is contained in:
parent
87845145b5
commit
5fc4c07626
42
libraries/Par27979/Par27979.h
Normal file
42
libraries/Par27979/Par27979.h
Normal file
@ -0,0 +1,42 @@
|
||||
/*
|
||||
Par27979.h - library for Arduino & Parallax 27979 serial display
|
||||
Copyright (c) 2010. All right reserved.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it as long as you leave this copyright notice intact
|
||||
|
||||
This library 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.
|
||||
*/
|
||||
|
||||
#ifndef Par27979_h
|
||||
#define Par27979_h
|
||||
|
||||
#define DISPLAYOFF Serial.print((char)21)
|
||||
#define DISPLAYON Serial.print((char)22)
|
||||
#define DISPLAYCLR Serial.print((char)12); delay(10)
|
||||
#define BACKLIGHTOFF Serial.print((char)18)
|
||||
#define BACKLIGHTON Serial.print((char)17)
|
||||
#define GOTOXY(x,y) Serial.print((char)(128 + y*20 + x))
|
||||
#define LEFT Serial.print((char)8)
|
||||
#define RIGHT Serial.print((char)9)
|
||||
#define LINEFEED Serial.print((char)10)
|
||||
#define FORMFEED Serial.print((char)12)
|
||||
#define RETURN Serial.print((char)13)
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
void setup()
|
||||
{
|
||||
Serial.begin(9600);
|
||||
DISPLAYON;
|
||||
GOTOXY(2,3);
|
||||
Serial.print("hello");
|
||||
}
|
||||
|
||||
void loop()
|
||||
{
|
||||
}
|
||||
*/
|
4
libraries/Par27979/readme.txt
Normal file
4
libraries/Par27979/readme.txt
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
This is just a collection of simple macros,
|
||||
not a real class with a stream as param
|
||||
(todo someday somewhere)
|
Loading…
x
Reference in New Issue
Block a user