diff --git a/doc/html/12x16__horizontal__LSB__1_8h.html b/doc/html/12x16__horizontal__LSB__1_8h.html index 38ad004..cf6b54b 100644 --- a/doc/html/12x16__horizontal__LSB__1_8h.html +++ b/doc/html/12x16__horizontal__LSB__1_8h.html @@ -1,10 +1,13 @@ - -
+ + + +-Go to the source code of this file.
Variables | ||||||||
const uint8_t font_12x16[] | PROGMEM |
Variables | |
const char font_12x16[] | PROGMEM |
-
-Go to the source code of this file.
Variables | ||||||||
const uint8_t font_8x8[] | PROGMEM |
Variables | |
const char font_8x8[] | PROGMEM |
-
#include "adc.h"
#include "adc.h"
Functions | |
uint16_t | readADC (uint8_t channel) |
Functions | |
uint16_t | readADC (uint8_t channel) |
uint16_t readADC | +uint16_t readADC | ( | uint8_t | -channel | +channel | ) | -+ |
-
#include <avr/io.h>
#include <util/delay.h>
#include <inttypes.h>
-Go to the source code of this file.
Defines | ||||||||
#define | ADC_H ADC_H | |||||||
Functions | ||||||||
uint16_t | readADC (uint8_t channel) |
Defines | |
#define | ADC_H ADC_H |
#define | ADC_READ_CYCELS 5 |
Functions | |
uint16_t | readADC (uint8_t channel) |
#define ADC_H ADC_H | +#define ADC_H ADC_H |
-
-
uint16_t readADC | +#define ADC_READ_CYCELS 5 | +
uint16_t readADC | ( | uint8_t | -channel | +channel | ) | -+ |
-
-
#include <avr/pgmspace.h>
-Go to the source code of this file.
Variables | ||||||||
const uint8_t bitmap[] | PROGMEM |
Variables | |
const uint8_t bitmap[] | PROGMEM |
-
#include "lc7981.h"
#include "lc7981.h"
Functions | |
void | lcd_init (uint8_t mode) |
lcd_init set the to default values. | |
void | lcd_write_command (uint8_t cmd, uint8_t data) |
Writes a command and a data byte to the lcd. | |
uint8_t | lcd_read_byte () |
Reads a byte from the display memory. | |
void | lcd_strobe () |
Generates the strobe signal for writing data. | |
void | lcd_clear () |
Clears the display by setting the whole memory to 0. | |
void | lcd_write_text (char *txt) |
Outputs text in at the current cursor position. | |
void | lcd_gotoxy (uint8_t x, uint8_t y) |
Set the display cursor to a specific location. | |
void | lcd_plot_pixel (uint8_t x, uint8_t y, uint8_t set) |
set or unset a pixel at the specified location | |
void | lcd_plot_bitmap (uint8_t x_off, uint8_t y_off, const uint8_t *bitmap, uint8_t w, uint8_t h) |
This function will plot a bitmap with the upper left corner to the given coordinates. | |
void | lcd_plot_char (uint8_t x_off, uint8_t y_off, uint8_t c, uint8_t fw, uint8_t fh, const uint8_t *font) |
Plots a single character in graphicmode. | |
void | lcd_plot_text (uint8_t x_off, uint8_t y_off, const char *text, uint8_t fw, uint8_t fh, const uint8_t *font) |
Plots a text using lcd_plot_char. | |
void | lcd_plot_pgmtext (uint8_t x_off, uint8_t y_off, const char *text, uint8_t fw, uint8_t fh, const uint8_t *font) |
Variables | |
uint8_t | lcd_mode |
Currently used mode, can be text or graphic. | |
uint8_t | lcd_curline |
Current line. Used for scrolling in text mode. | |
Functions | |
void | lcd_init (uint8_t mode) |
lcd_init set the to default values. | |
void | lcd_clear () |
Clears the display by setting the whole memory to 0. | |
void | lcd_write_text (char *txt) |
Outputs text in at the current cursor position. | |
void | lcd_gotoxy (uint8_t x, uint8_t y) |
Set the display cursor to a specific location. | |
void | lcd_plot_pixel (uint8_t x, uint8_t y, uint8_t set) |
set or unset a pixel at the specified location | |
void | lcd_plot_bitmap (uint8_t x_off, uint8_t y_off, PGM_P bitmap, uint8_t w, uint8_t h) |
This function will plot a bitmap with the upper left corner to the given coordinates. | |
void | lcd_plot_char (uint8_t x_off, uint8_t y_off, uint8_t c, uint8_t fw, uint8_t fh, PGM_P font) |
Plots a single character in graphicmode. | |
void | lcd_plot_text (uint8_t x_off, uint8_t y_off, const char *text, uint8_t fw, uint8_t fh, PGM_P font) |
Plots a text using lcd_plot_char. | |
void | lcd_plot_pgmtext (uint8_t x_off, uint8_t y_off, PGM_P text, uint8_t fw, uint8_t fh, PGM_P font) |
Variables | |
uint8_t | lcd_mode |
Currently used mode, can be text or graphic. | |
uint8_t | lcd_curline |
Current line. Used for scrolling in text mode. |
void lcd_clear | +void lcd_clear | ( | -+ | ) | - [inline] |
+
-Clears the display by setting the whole memory to 0. -
+
Clears the display by setting the whole memory to 0.
void lcd_gotoxy | +void lcd_gotoxy | ( | uint8_t | x, | @@ -102,59 +88,57 @@ Clears the display by setting the whole memory to 0.|||
) | - [inline] |
+
-Set the display cursor to a specific location. -
-Right now this does only work in text mode, since there's no need for it now in graphics mode.
- If the x and y values are to big, the function does nothing.
-
Set the display cursor to a specific location.
+Right now this does only work in text mode, since there's no need for it now in graphics mode.
+ If the x and y values are to big, the function does nothing.
x | the horizontal cursorposition (starts at 0) | |
y | the vertical cursorposition (starts at 0) |
void lcd_init | +void lcd_init | ( | uint8_t | -mode | +mode | ) | -+ |
-lcd_init set the to default values. -
-
lcd_init set the to default values.
+mode | LCD_TEXT for text mode and LCD_GRAPHIC for graphic mode |
void lcd_plot_bitmap | +void lcd_plot_bitmap | ( | uint8_t | x_off, | @@ -168,7 +152,7 @@ lcd_init set the to default values.|||
- | const uint8_t * | +PGM_P | bitmap, | ||||
) | -+ |
-This function will plot a bitmap with the upper left corner to the given coordinates. -
-
- If the bitmap doesn't fit on the display at this location, nothing is drawn at all.
- Unset pixels are treated as transparent
- This function is by far the most tricky piece of code in this project,
- don't worry if you don't understand it at first sight.
- And if you know a better way to do this, tell me.
-
-
This function will plot a bitmap with the upper left corner to the given coordinates.
+
+ If the bitmap doesn't fit on the display at this location, nothing is drawn at all.
+ Unset pixels are treated as transparent
+ This function is by far the most tricky piece of code in this project,
+ don't worry if you don't understand it at first sight.
+ And if you know a better way to do this, tell me.
+
x_off | horizontal position of the bitmap | |
y_off | vertical position of the bitmap | |
w | width of the bitmap | |
h | height of the bitmap |
This function is dedicated to Greta, one of the most important persons in my life so far.
+
void lcd_plot_char | +void lcd_plot_char | ( | uint8_t | x_off, | @@ -252,29 +236,27 @@ This function is dedicated to Greta, one of the most important persons in my lif|||
- | const uint8_t * | +PGM_P | font | ||||
) | - [inline] |
+
-Plots a single character in graphicmode. -
-Each character of the font is stored linewise.
- This means for a 8x8 Pixel font the 8 bytes are needed.
- The first byte is the first line and the last byte is the last line.
- The next 8byte are the next character.
-
- If the position is too close to the display edge so it can't be displayed completely,
- It won't be displayed at all.
-
Plots a single character in graphicmode.
+Each character of the font is stored linewise.
+ This means for a 8x8 Pixel font the 8 bytes are needed.
+ The first byte is the first line and the last byte is the last line.
+ The next 8byte are the next character.
+
+ If the position is too close to the display edge so it can't be displayed completely,
+ It won't be displayed at all.
x_off | horizontal position of the character | |
y_off | vertical position of the character | |
fh | height of the font | |
font | pointer to the flash area where the font is stored |
void lcd_plot_pgmtext | +void lcd_plot_pgmtext | ( | uint8_t | x_off, | @@ -306,7 +289,7 @@ Each character of the font is stored linewise.|||
- | const char * | +PGM_P | text, | ||||
- | const uint8_t * | +PGM_P | font | ||||
) | -+ |
-
void lcd_plot_pixel | +void lcd_plot_pixel | ( | uint8_t | x, | @@ -365,31 +346,30 @@ Each character of the font is stored linewise.|||
) | -+ |
-set or unset a pixel at the specified location -
-
set or unset a pixel at the specified location
+x | horizontal position of the pixel (starts at 0) | |
y | horizontal position of the pixel (starts at 0) | |
set | can be PIXEL_ON or PIXEL_OFF |
void lcd_plot_text | +void lcd_plot_text | ( | uint8_t | x_off, | @@ -421,22 +401,20 @@ set or unset a pixel at the specified location|||
- | const uint8_t * | +PGM_P | font | ||||
) | -+ |
-Plots a text using lcd_plot_char. -
-
Plots a text using lcd_plot_char.
+x_off | horizontal position of the character | |
y_off | vertical position of the character | |
fh | height of the font | |
font | pointer to the flash area where the font is stored |
uint8_t lcd_read_byte | -( | -- | ) | - [inline] |
-
-Reads a byte from the display memory. -
-lcd_gotoxy can be used to set the location. Important : lcd_gotoxy doesn't work in graphics mode yet.
-
void lcd_strobe | -( | -- | ) | - [inline] |
-
-Generates the strobe signal for writing data. -
-This function is meant for internal usage only. -
void lcd_write_command | -( | -uint8_t | -cmd, | -|
- | - | uint8_t | -data | - |
- | ) | - [inline] |
-
-Writes a command and a data byte to the lcd. -
-
cmd | the command byte | |
data | the data that is going to be written after the command |
void lcd_write_text | +void lcd_write_text | ( | char * | -txt | +txt | ) | -+ |
-Outputs text in at the current cursor position. -
-If a \n occurs in the last line of the display, all the other line will be 'scrolled' up. This function is textmode only. The the second line becomes the first, the third the second and so on ...
Outputs text in at the current cursor position.
+If a \n occurs in the last line of the display, all the other line will be 'scrolled' up. This function is textmode only. The the second line becomes the first, the third the second and so on ...
+txt | the text |
-
uint8_t lcd_curline | +uint8_t lcd_curline |
-Current line. Used for scrolling in text mode. -
+
Current line. Used for scrolling in text mode.
-Currently used mode, can be text or graphic. -
+
Currently used mode, can be text or graphic.
-
#include <avr/io.h>
#include <util/delay.h>
#include <avr/pgmspace.h>
#include <avr/io.h>
#include <util/delay.h>
#include <avr/pgmspace.h>
-Go to the source code of this file.
Defines | ||||||||
#define | LC7981_H_ LC7981_H_ | |||||||
protects this file from beeing double included | ||||||||
#define | LCD_CTRL PORTA | |||||||
Port used for control signals. | ||||||||
#define | LCD_CRTL_DDR DDRA | |||||||
Data-Direction-Register for the control signals. | ||||||||
#define | LCD_RS PA4 | |||||||
Register-Select Pin of the Display. | ||||||||
#define | LCD_RW PA2 | |||||||
Read-Write-select Pin. | ||||||||
#define | LCD_EN PA0 | |||||||
Strobe Pin. | ||||||||
#define | LCD_DATA PORTD | |||||||
Port used for data. | ||||||||
#define | LCD_DATA_DDR DDRD | |||||||
Data-Direction-Register for Data. | ||||||||
#define | lcd_rs_high() (LCD_CTRL |= (1 << LCD_RS)) | |||||||
Set the Register-Select pin high. | ||||||||
#define | lcd_rs_low() (LCD_CTRL &= ~(1 << LCD_RS)) | |||||||
Set the Register-Select pin low. | ||||||||
#define | lcd_rw_high() (LCD_CTRL |= (1 << LCD_RW)) | |||||||
Set the Read-Write-Select pin high. | ||||||||
#define | lcd_rw_low() (LCD_CTRL &= ~(1 << LCD_RW)) | |||||||
Set the Register-Select pin low. | ||||||||
#define | lcd_en_high() (LCD_CTRL |= (1 << LCD_EN)) | |||||||
Set the strobe pin high. | ||||||||
#define | lcd_en_low() (LCD_CTRL &= ~(1 << LCD_EN)) | |||||||
Set the strobe pin low. | ||||||||
#define | LCD_TEXT 0 | |||||||
Constant for text mode. | ||||||||
#define | LCD_TEXT_LINES 10 | |||||||
Number of lines in text mode. | ||||||||
#define | LCD_TEXT_COLUMNS 26 | |||||||
Number of columns in text mode. | ||||||||
#define | LCD_GRAPHIC 1 | |||||||
Constant for graphic mode. | ||||||||
#define | LCD_GRAPHIC_WIDTH 160 | |||||||
Horizontal display size in pixels. | ||||||||
#define | LCD_GRAPHIC_HEIGHT 80 | |||||||
Vertical display size in pixels. | ||||||||
#define | PIXEL_ON 1 | |||||||
see lcd_plot_pixel | ||||||||
#define | PIXEL_OFF 0 | |||||||
see lcd_plot_pixel | ||||||||
Functions | ||||||||
void | lcd_init (uint8_t mode) | |||||||
lcd_init set the to default values. | ||||||||
void | lcd_clear () | |||||||
Clears the display by setting the whole memory to 0. | ||||||||
void | lcd_write_text (char *txt) | |||||||
Outputs text in at the current cursor position. | ||||||||
void | lcd_gotoxy (uint8_t x, uint8_t y) | |||||||
Set the display cursor to a specific location. | ||||||||
void | lcd_plot_pixel (uint8_t x, uint8_t y, uint8_t set) | |||||||
set or unset a pixel at the specified location | ||||||||
void | lcd_plot_bitmap (uint8_t x, uint8_t y, const uint8_t *bitmap, uint8_t w, uint8_t h) | |||||||
This function will plot a bitmap with the upper left corner to the given coordinates. | ||||||||
void | lcd_plot_char (uint8_t x_off, uint8_t y_off, uint8_t c, uint8_t fw, uint8_t fh, const uint8_t *font) | |||||||
Plots a single character in graphicmode. | ||||||||
void | lcd_plot_text (uint8_t x_off, uint8_t y_off, const char *text, uint8_t fw, uint8_t fh, const uint8_t *font) | |||||||
Plots a text using lcd_plot_char. | ||||||||
void | lcd_strobe () | |||||||
Generates the strobe signal for writing data. | ||||||||
void | lcd_write_command (uint8_t cmd, uint8_t data) | |||||||
Writes a command and a data byte to the lcd. | ||||||||
uint8_t | lcd_read_byte () | |||||||
Reads a byte from the display memory. |
Defines | |
#define | LC7981_H_ LC7981_H_ |
protects this file from beeing double included | |
#define | LCD_CTRL PORTA |
Port used for control signals. | |
#define | LCD_CRTL_DDR DDRA |
Data-Direction-Register for the control signals. | |
#define | LCD_RS PA4 |
Register-Select Pin of the Display. | |
#define | LCD_RW PA2 |
Read-Write-select Pin. | |
#define | LCD_EN PA0 |
Strobe Pin. | |
#define | LCD_DATA PORTD |
Port used for data. | |
#define | LCD_DATA_PIN PIND |
Port used for reading the data. | |
#define | LCD_DATA_DDR DDRD |
Data-Direction-Register for data. | |
#define | lcd_rs_high() (LCD_CTRL |= (1 << LCD_RS)) |
Set the Register-Select pin high. | |
#define | lcd_rs_low() (LCD_CTRL &= ~(1 << LCD_RS)) |
Set the Register-Select pin low. | |
#define | lcd_rw_high() (LCD_CTRL |= (1 << LCD_RW)) |
Set the Read-Write-Select pin high. | |
#define | lcd_rw_low() (LCD_CTRL &= ~(1 << LCD_RW)) |
Set the Register-Select pin low. | |
#define | lcd_en_high() (LCD_CTRL |= (1 << LCD_EN)) |
Set the strobe pin high. | |
#define | lcd_en_low() (LCD_CTRL &= ~(1 << LCD_EN)) |
Set the strobe pin low. | |
#define | LCD_TEXT 0 |
Constant for text mode. | |
#define | LCD_TEXT_LINES 10 |
Number of lines in text mode. | |
#define | LCD_TEXT_COLUMNS 26 |
Number of columns in text mode. | |
#define | LCD_GRAPHIC 1 |
Constant for graphic mode. | |
#define | LCD_GRAPHIC_WIDTH 160 |
Horizontal display size in pixels. | |
#define | LCD_GRAPHIC_HEIGHT 80 |
Vertical display size in pixels. | |
#define | PIXEL_ON 1 |
see lcd_plot_pixel | |
#define | PIXEL_OFF 0 |
see lcd_plot_pixel | |
Functions | |
void | lcd_init (uint8_t mode) |
lcd_init set the to default values. | |
void | lcd_clear () |
Clears the display by setting the whole memory to 0. | |
void | lcd_write_text (char *txt) |
Outputs text in at the current cursor position. | |
void | lcd_gotoxy (uint8_t x, uint8_t y) |
Set the display cursor to a specific location. | |
void | lcd_plot_pixel (uint8_t x, uint8_t y, uint8_t set) |
set or unset a pixel at the specified location | |
void | lcd_plot_bitmap (uint8_t x, uint8_t y, PGM_P bitmap, uint8_t w, uint8_t h) |
This function will plot a bitmap with the upper left corner to the given coordinates. | |
void | lcd_plot_char (uint8_t x_off, uint8_t y_off, uint8_t c, uint8_t fw, uint8_t fh, PGM_P font) |
Plots a single character in graphicmode. | |
void | lcd_plot_text (uint8_t x_off, uint8_t y_off, const char *text, uint8_t fw, uint8_t fh, PGM_P font) |
Plots a text using lcd_plot_char. | |
void | lcd_plot_pgmtext (uint8_t x_off, uint8_t y_off, PGM_P text, uint8_t fw, uint8_t fh, PGM_P font) |
static void | lcd_strobe () |
Generates the strobe signal for writing data. | |
static void | lcd_write_command (uint8_t cmd, uint8_t data) |
Writes a command and a data byte to the lcd. | |
static uint8_t | lcd_read_byte () |
Reads a byte from the display memory. |
#define LC7981_H_ LC7981_H_ | +#define LC7981_H_ LC7981_H_ |
-protects this file from beeing double included -
+
protects this file from beeing double included
#define LCD_CRTL_DDR DDRA | +#define LCD_CRTL_DDR DDRA |
-Data-Direction-Register for the control signals. -
+
Data-Direction-Register for the control signals.
#define LCD_CTRL PORTA | +#define LCD_CTRL PORTA |
-Port used for control signals. -
+
Port used for control signals.
#define LCD_DATA PORTD | +#define LCD_DATA PORTD |
-Port used for data. -
+
Port used for data.
#define LCD_DATA_DDR DDRD | +#define LCD_DATA_DDR DDRD |
-Data-Direction-Register for Data. -
+
Data-Direction-Register for data.
#define LCD_EN PA0 | +#define LCD_DATA_PIN PIND |
-Strobe Pin. -
+
Port used for reading the data.
#define lcd_en_high | +#define LCD_EN PA0 | +
Strobe Pin.
+ +#define lcd_en_high | ( | -+ | ) | -(LCD_CTRL |= (1 << LCD_EN)) | +(LCD_CTRL |= (1 << LCD_EN)) |
-Set the strobe pin high. -
+
Set the strobe pin high.
#define lcd_en_low | +#define lcd_en_low | ( | -+ | ) | -(LCD_CTRL &= ~(1 << LCD_EN)) | +(LCD_CTRL &= ~(1 << LCD_EN)) |
-Set the strobe pin low. -
+
Set the strobe pin low.
#define LCD_GRAPHIC 1 | +#define LCD_GRAPHIC 1 |
-Constant for graphic mode. -
+
Constant for graphic mode.
#define LCD_GRAPHIC_HEIGHT 80 | +#define LCD_GRAPHIC_HEIGHT 80 |
-Vertical display size in pixels. -
+
Vertical display size in pixels.
#define LCD_GRAPHIC_WIDTH 160 | +#define LCD_GRAPHIC_WIDTH 160 |
-Horizontal display size in pixels. -
+
Horizontal display size in pixels.
#define LCD_RS PA4 | +#define LCD_RS PA4 |
-Register-Select Pin of the Display. -
+
Register-Select Pin of the Display.
#define lcd_rs_high | +#define lcd_rs_high | ( | -+ | ) | -(LCD_CTRL |= (1 << LCD_RS)) | +(LCD_CTRL |= (1 << LCD_RS)) |
-Set the Register-Select pin high. -
+
Set the Register-Select pin high.
#define lcd_rs_low | +#define lcd_rs_low | ( | -+ | ) | -(LCD_CTRL &= ~(1 << LCD_RS)) | +(LCD_CTRL &= ~(1 << LCD_RS)) |
-Set the Register-Select pin low. -
+
Set the Register-Select pin low.
#define LCD_RW PA2 | +#define LCD_RW PA2 |
-Read-Write-select Pin. -
+
Read-Write-select Pin.
#define lcd_rw_high | +#define lcd_rw_high | ( | -+ | ) | -(LCD_CTRL |= (1 << LCD_RW)) | +(LCD_CTRL |= (1 << LCD_RW)) |
-Set the Read-Write-Select pin high. -
+
Set the Read-Write-Select pin high.
#define lcd_rw_low | +#define lcd_rw_low | ( | -+ | ) | -(LCD_CTRL &= ~(1 << LCD_RW)) | +(LCD_CTRL &= ~(1 << LCD_RW)) |
-Set the Register-Select pin low. -
+
Set the Register-Select pin low.
#define LCD_TEXT 0 | +#define LCD_TEXT 0 |
-Constant for text mode. -
+
Constant for text mode.
#define LCD_TEXT_COLUMNS 26 | +#define LCD_TEXT_COLUMNS 26 |
-Number of columns in text mode. -
+
Number of columns in text mode.
#define LCD_TEXT_LINES 10 | +#define LCD_TEXT_LINES 10 |
-Number of lines in text mode. -
+
Number of lines in text mode.
#define PIXEL_OFF 0 | +#define PIXEL_OFF 0 |
-see lcd_plot_pixel -
+
see lcd_plot_pixel
#define PIXEL_ON 1 | +#define PIXEL_ON 1 |
-see lcd_plot_pixel -
+
see lcd_plot_pixel
-
void lcd_clear | +void lcd_clear | ( | -+ | ) | - [inline] |
+
-Clears the display by setting the whole memory to 0. -
+
Clears the display by setting the whole memory to 0.
void lcd_gotoxy | +void lcd_gotoxy | ( | uint8_t | x, | @@ -569,59 +516,57 @@ Clears the display by setting the whole memory to 0.|||
) | - [inline] |
+
-Set the display cursor to a specific location. -
-Right now this does only work in text mode, since there's no need for it now in graphics mode.
- If the x and y values are to big, the function does nothing.
-
Set the display cursor to a specific location.
+Right now this does only work in text mode, since there's no need for it now in graphics mode.
+ If the x and y values are to big, the function does nothing.
x | the horizontal cursorposition (starts at 0) | |
y | the vertical cursorposition (starts at 0) |
void lcd_init | +void lcd_init | ( | uint8_t | -mode | +mode | ) | -+ |
-lcd_init set the to default values. -
-
lcd_init set the to default values.
+mode | LCD_TEXT for text mode and LCD_GRAPHIC for graphic mode |
void lcd_plot_bitmap | +void lcd_plot_bitmap | ( | uint8_t | x_off, | @@ -635,7 +580,7 @@ lcd_init set the to default values.|||
- | const uint8_t * | +PGM_P | bitmap, | ||||
) | -+ |
-This function will plot a bitmap with the upper left corner to the given coordinates. -
-
- If the bitmap doesn't fit on the display at this location, nothing is drawn at all.
- Unset pixels are treated as transparent
- This function is by far the most tricky piece of code in this project,
- don't worry if you don't understand it at first sight.
- And if you know a better way to do this, tell me.
-
-
This function will plot a bitmap with the upper left corner to the given coordinates.
+
+ If the bitmap doesn't fit on the display at this location, nothing is drawn at all.
+ Unset pixels are treated as transparent
+ This function is by far the most tricky piece of code in this project,
+ don't worry if you don't understand it at first sight.
+ And if you know a better way to do this, tell me.
+
x_off | horizontal position of the bitmap | |
y_off | vertical position of the bitmap | |
w | width of the bitmap | |
h | height of the bitmap |
This function is dedicated to Greta, one of the most important persons in my life so far.
+
void lcd_plot_char | +void lcd_plot_char | ( | uint8_t | x_off, | @@ -719,29 +664,27 @@ This function is dedicated to Greta, one of the most important persons in my lif|||
- | const uint8_t * | +PGM_P | font | ||||
) | - [inline] |
+
-Plots a single character in graphicmode. -
-Each character of the font is stored linewise.
- This means for a 8x8 Pixel font the 8 bytes are needed.
- The first byte is the first line and the last byte is the last line.
- The next 8byte are the next character.
-
- If the position is too close to the display edge so it can't be displayed completely,
- It won't be displayed at all.
-
Plots a single character in graphicmode.
+Each character of the font is stored linewise.
+ This means for a 8x8 Pixel font the 8 bytes are needed.
+ The first byte is the first line and the last byte is the last line.
+ The next 8byte are the next character.
+
+ If the position is too close to the display edge so it can't be displayed completely,
+ It won't be displayed at all.
x_off | horizontal position of the character | |
y_off | vertical position of the character | |
fh | height of the font | |
font | pointer to the flash area where the font is stored |
void lcd_plot_pixel | +void lcd_plot_pgmtext | +( | +uint8_t | +x_off, | +
+ | + | uint8_t | +y_off, | +|
+ | + | PGM_P | +text, | +|
+ | + | uint8_t | +fw, | +|
+ | + | uint8_t | +fh, | +|
+ | + | PGM_P | +font | + |
+ | ) | ++ |
void lcd_plot_pixel | ( | uint8_t | x, | @@ -779,31 +774,30 @@ Each character of the font is stored linewise.||||
) | -+ |
-set or unset a pixel at the specified location -
-
set or unset a pixel at the specified location
+x | horizontal position of the pixel (starts at 0) | |
y | horizontal position of the pixel (starts at 0) | |
set | can be PIXEL_ON or PIXEL_OFF |
void lcd_plot_text | +void lcd_plot_text | ( | uint8_t | x_off, | @@ -835,22 +829,20 @@ set or unset a pixel at the specified location|||
- | const uint8_t * | +PGM_P | font | ||||
) | -+ |
-Plots a text using lcd_plot_char. -
-
Plots a text using lcd_plot_char.
+x_off | horizontal position of the character | |
y_off | vertical position of the character | |
fh | height of the font | |
font | pointer to the flash area where the font is stored |
uint8_t lcd_read_byte | +static uint8_t lcd_read_byte | ( | -+ | ) | - [inline] |
+ [inline, static] |
-Reads a byte from the display memory. -
-lcd_gotoxy can be used to set the location. Important : lcd_gotoxy doesn't work in graphics mode yet.
-
Reads a byte from the display memory.
+lcd_gotoxy can be used to set the location. Important : lcd_gotoxy doesn't work in graphics mode yet.
+void lcd_strobe | +static void lcd_strobe | ( | -+ | ) | - [inline] |
+ [inline, static] |
-Generates the strobe signal for writing data. -
-This function is meant for internal usage only. +
Generates the strobe signal for writing data.
+This function is meant for internal usage only.
+void lcd_write_command | +static void lcd_write_command | ( | uint8_t | cmd, | @@ -928,54 +918,53 @@ This function is meant for internal usage only.|||
) | - [inline] |
+ [inline, static] |
-Writes a command and a data byte to the lcd. -
-
Writes a command and a data byte to the lcd.
+cmd | the command byte | |
data | the data that is going to be written after the command |
void lcd_write_text | +void lcd_write_text | ( | char * | -txt | +txt | ) | -+ |
-Outputs text in at the current cursor position. -
-If a \n occurs in the last line of the display, all the other line will be 'scrolled' up. This function is textmode only. The the second line becomes the first, the third the second and so on ...
Outputs text in at the current cursor position.
+If a \n occurs in the last line of the display, all the other line will be 'scrolled' up. This function is textmode only. The the second line becomes the first, the third the second and so on ...
+txt | the text |
-
#include <avr/io.h>
#include <stdlib.h>
#include "include/lc7981.h"
#include "include/adc.h"
#include "button.h"
#include "12x16_horizontal_LSB_1.h"
#include "include/touch.h"
#include "writing_demo.h"
#include <avr/io.h>
#include <stdlib.h>
#include "include/lc7981.h"
#include "include/adc.h"
#include "button.h"
#include "12x16_horizontal_LSB_1.h"
#include "include/touch.h"
#include "writing_demo.h"
Functions | |
int | main () |
Functions | |
int | main () |
int main | +int main | ( | -+ | ) | -+ |
-
#include "touch.h"
#include "touch.h"
Functions | |
uint8_t | touch_is_pressed () |
This functions set 5V to X1 and GND to Y1, the voltage at X2 is measured via the ADC. | |
int16_t | touch_readX () |
int16_t | touch_readY () |
Functions | |
uint8_t | touch_is_pressed () |
This functions set 5V to X1 and GND to Y1, the voltage at X2 is measured via the ADC. | |
int16_t | touch_readX () |
int16_t | touch_readY () |
uint8_t touch_is_pressed | +uint8_t touch_is_pressed | ( | -+ | ) | -+ |
-This functions set 5V to X1 and GND to Y1, the voltage at X2 is measured via the ADC. -
-If the ADC-Value is less then TOUCH_PRESSED_LEVEL, the function will return 1.
This functions set 5V to X1 and GND to Y1, the voltage at X2 is measured via the ADC.
+If the ADC-Value is less then TOUCH_PRESSED_LEVEL, the function will return 1.
+int16_t touch_readX | +int16_t touch_readX | ( | -+ | ) | -+ |
-
int16_t touch_readY | +int16_t touch_readY | ( | -+ | ) | -+ |
-
-
#include "adc.h"
-Go to the source code of this file.
Defines | |||||||
#define | TOUCH_H_ TOUCH_H_ | ||||||
touch.h | |||||||
#define | TOUCH_PORT PORTA | ||||||
#define | TOUCH_PIN PINA | ||||||
#define | TOUCH_DDR DDRA | ||||||
#define | TOUCH_X1 PA1 | ||||||
#define | TOUCH_X2 PA3 | ||||||
#define | TOUCH_Y1 PA5 | ||||||
#define | TOUCH_Y2 PA7 | ||||||
#define | TOUCH_PRESSED_LEVEL 1000 | ||||||
Functions | |||||||
uint8_t | touch_is_pressed () | ||||||
This functions set 5V to X1 and GND to Y1, the voltage at X2 is measured via the ADC. | |||||||
int16_t | touch_readX () | ||||||
int16_t | touch_readY () |
Defines | |
#define | TOUCH_H_ TOUCH_H_ |
touch.h | |
#define | TOUCH_PORT PORTA |
#define | TOUCH_PIN PINA |
#define | TOUCH_DDR DDRA |
#define | TOUCH_X1 PA1 |
#define | TOUCH_X2 PA3 |
#define | TOUCH_Y1 PA5 |
#define | TOUCH_Y2 PA7 |
#define | TOUCH_PRESSED_LEVEL 1000 |
Functions | |
uint8_t | touch_is_pressed () |
This functions set 5V to X1 and GND to Y1, the voltage at X2 is measured via the ADC. | |
int16_t | touch_readX () |
int16_t | touch_readY () |
#define TOUCH_DDR DDRA | +#define TOUCH_DDR DDRA |
-
#define TOUCH_H_ TOUCH_H_ | +#define TOUCH_H_ TOUCH_H_ |
#define TOUCH_PIN PINA | +#define TOUCH_PIN PINA |
-
#define TOUCH_PORT PORTA | +#define TOUCH_PORT PORTA |
-
#define TOUCH_PRESSED_LEVEL 1000 | +#define TOUCH_PRESSED_LEVEL 1000 |
-
#define TOUCH_X1 PA1 | +#define TOUCH_X1 PA1 |
-
#define TOUCH_X2 PA3 | +#define TOUCH_X2 PA3 |
-
#define TOUCH_Y1 PA5 | +#define TOUCH_Y1 PA5 |
-
#define TOUCH_Y2 PA7 | +#define TOUCH_Y2 PA7 |
-
-
uint8_t touch_is_pressed | +uint8_t touch_is_pressed | ( | -+ | ) | -+ |
-This functions set 5V to X1 and GND to Y1, the voltage at X2 is measured via the ADC. -
-If the ADC-Value is less then TOUCH_PRESSED_LEVEL, the function will return 1.
This functions set 5V to X1 and GND to Y1, the voltage at X2 is measured via the ADC.
+If the ADC-Value is less then TOUCH_PRESSED_LEVEL, the function will return 1.
+int16_t touch_readX | +int16_t touch_readX | ( | -+ | ) | -+ |
-
int16_t touch_readY | +int16_t touch_readY | ( | -+ | ) | -+ |
-
-
#include "writing_demo.h"
#include "writing_demo.h"
Functions | |
void | writing_demo () |
particel_demo.c | |
Functions | |
void | writing_demo () |
particel_demo.c |
void writing_demo | +void writing_demo | ( | -+ | ) | -+ |
-particel_demo.c -
-Created on: 29.05.2009 Author: sebastian +
particel_demo.c
+Created on: 29.05.2009 Author: sebastian
+
#include <stdlib.h>
#include "include/lc7981.h"
#include "include/adc.h"
#include "include/touch.h"
#include <stdlib.h>
#include "include/lc7981.h"
#include "include/adc.h"
#include "include/touch.h"
-Go to the source code of this file.
Defines | |||||||
#define | WIRTING_DEMO_H_ WIRTING_DEMO_H_ | ||||||
particel_demo.h | |||||||
Functions | |||||||
void | writing_demo () | ||||||
particel_demo.c |
Defines | |
#define | WIRTING_DEMO_H_ WIRTING_DEMO_H_ |
particel_demo.h | |
Functions | |
void | writing_demo () |
particel_demo.c |
#define WIRTING_DEMO_H_ WIRTING_DEMO_H_ | +#define WIRTING_DEMO_H_ WIRTING_DEMO_H_ |
-particel_demo.h -
-Created on: 29.05.2009 Author: sebastian +
particel_demo.h
+Created on: 29.05.2009 Author: sebastian
+-
void writing_demo | +void writing_demo | ( | -+ | ) | -+ |
-particel_demo.c -
-Created on: 29.05.2009 Author: sebastian +
particel_demo.c
+Created on: 29.05.2009 Author: sebastian
+-
...+\newenvironment{DoxyPre}{% + \small% + \begin{alltt}% +}{% + \end{alltt}% + \normalsize% +} + +% Used by @code ... @endcode +\newenvironment{DoxyCode}{% + \footnotesize% + \verbatim% +}{% + \endverbatim% + \normalsize% +} + +% Used by @example, @include, @includelineno and @dontinclude +\newenvironment{DoxyCodeInclude}{% + \DoxyCode% +}{% + \endDoxyCode% +} + +% Used by @verbatim ... @endverbatim +\newenvironment{DoxyVerb}{% + \footnotesize% + \verbatim% +}{% + \endverbatim% + \normalsize% +} + +% Used by @verbinclude +\newenvironment{DoxyVerbInclude}{% + \DoxyVerb% +}{% + \endDoxyVerb% +} + +% Used by numbered lists (using '-#' or