Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Rasterisation Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sr1g19
Rasterisation Project
Commits
1deb4b42
Commit
1deb4b42
authored
4 years ago
by
sr1g19
Browse files
Options
Downloads
Patches
Plain Diff
Delete lcd.h
parent
e60660d1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lcd/lcd.h
+0
-58
0 additions, 58 deletions
src/lcd/lcd.h
with
0 additions
and
58 deletions
src/lcd/lcd.h
deleted
100644 → 0
+
0
−
58
View file @
e60660d1
/* Author: Steve Gunn
* Licence: This work is licensed under the Creative Commons Attribution License.
* View this license at http://creativecommons.org/about/licenses/
*/
#ifndef _LCD_H
#define _LCD_H
#include
<avr/io.h>
#include
<stdint.h>
#include
<avr/pgmspace.h>
#include
"ili934x.h"
#define LCDWIDTH 240
#define LCDHEIGHT 320
/* Colour definitions RGB565 */
#define WHITE 0xFFFF
#define BLACK 0x0000
#define BLUE 0x001F
#define GREEN 0x07E0
#define CYAN 0x07FF
#define RED 0xF800
#define MAGENTA 0xF81F
#define YELLOW 0xFFE0
typedef
enum
{
North
,
West
,
South
,
East
}
orientation
;
typedef
struct
{
uint16_t
width
,
height
;
orientation
orient
;
uint16_t
x
,
y
;
uint16_t
foreground
,
background
;
}
lcd
;
extern
lcd
display
;
typedef
struct
{
uint16_t
left
,
right
,
top
,
bottom
;
}
rectangle
;
void
init_lcd
();
void
lcd_brightness
(
uint8_t
i
);
void
set_orientation
(
orientation
o
);
void
set_frame_rate_hz
(
uint8_t
f
);
void
clear_screen
();
void
fill_rectangle
(
rectangle
r
,
uint16_t
col
);
void
fill_rectangle_indexed
(
rectangle
r
,
uint16_t
*
col
);
void
fill_rectangle_indexed_MEM
(
rectangle
r
,
PGM_P
imgdata
);
void
compositeTest
(
rectangle
r
,
uint16_t
*
copyReg
);
void
display_char
(
char
c
);
void
display_string
(
char
*
str
);
void
display_string_xy
(
char
*
str
,
uint16_t
x
,
uint16_t
y
);
void
rectangleInRegion
(
rectangle
*
r
);
void
setupDraw
(
rectangle
r
);
#endif //_LCD_H
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment