px-fwlib
0.10.0
Cross-platform embedded library and documentation for 8/16/32-bit microcontrollers
generated with
Doxygen
1.9.2
px_lcd_st7567_jhd12864_cfg_template.h
1
#ifndef __PX_LCD_ST7567_JHD12864_CFG_H__
2
#define __PX_LCD_ST7567_JHD12864_CFG_H__
3
/* =============================================================================
4
_____ _____ _____ ____ _ _ ____ __ __ _____ __ __
5
| __ \ |_ _| / ____| / __ \ | \ | | / __ \ | \/ | |_ _| \ \ / /
6
| |__) | | | | | | | | | | \| | | | | | | \ / | | | \ V /
7
| ___/ | | | | | | | | | . ` | | | | | | |\/| | | | > <
8
| | _| |_ | |____ | |__| | | |\ | | |__| | | | | | _| |_ / . \
9
|_| |_____| \_____| \____/ |_| \_| \____/ |_| |_| |_____| /_/ \_\
10
11
Copyright (c) 2018 Pieter Conradie <https://piconomix.com>
12
13
License: MIT
14
https://github.com/piconomix/px-fwlib/blob/master/LICENSE.md
15
16
Title: px_lcd_st7567_jhd12864.h : JHD JHD12864-G176BSW 128x64 monochrome LCD wtih Sitronix ST7567 driver configuration
17
Author(s): Pieter Conradie
18
Creation Date: 2018-09-10
19
20
============================================================================= */
21
22
/**
23
* @addtogroup PX_LCD_ST7567_JHD12864
24
*
25
* @{
26
*/
27
28
/* _____STANDARD INCLUDES____________________________________________________ */
29
30
/* _____PROJECT INCLUDES_____________________________________________________ */
31
#include "px_defs.h"
32
#include "px_board.h"
33
34
/* _____DEFINITIONS__________________________________________________________ */
35
/// Macro to set LCD reset pin low
36
#define PX_LCD_CFG_RST_LO() px_gpio_out_set_lo(&px_gpio_lcd_rst)
37
38
/// Macro to set LCD reset pin high
39
#define PX_LCD_CFG_RST_HI() px_gpio_out_set_hi(&px_gpio_lcd_rst)
40
41
/// Macro to set RS pin low
42
#define PX_LCD_CFG_RS_LO() px_gpio_out_set_lo(&px_gpio_lcd_rs)
43
44
/// Macro to set RS pin high
45
#define PX_LCD_CFG_RS_HI() px_gpio_out_set_hi(&px_gpio_lcd_rs)
46
47
/// Configuration option to rotate mapping of LCD by 180 degrees
48
#define PX_LCD_CFG_ROT_180_DEG 1
49
50
/// @}
51
#endif