Proyecto Final – Medición de Inclinación 0.0.1
Este proyecto utiliza la placa NUCLEO-STM32F446RE y permite detectar y visualizar en tiempo real la inclinación mediante el sensor MPU-6050.
Cargando...
Buscando...
Nada coincide
dev_LCD.h
Ir a la documentación de este archivo.
1
7
8#ifndef DEV_LCD_H
9#define DEV_LCD_H
10
11#include <stdint.h>
12#include <stdbool.h>
13#include "LCD_port.h"
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19/* -------------------------------------------------------------------------- */
20/* CONFIGURACIÓN DEL MÓDULO */
21/* -------------------------------------------------------------------------- */
22
26#ifndef DEV_LCD_COLS
27#define DEV_LCD_COLS 16
28#endif
29
33#ifndef DEV_LCD_ROWS
34#define DEV_LCD_ROWS 2
35#endif
36
40#define DEV_LCD_COLS_0 0
41
45#define DEV_LCD_ROWS_0 0
46
50#define DEV_LCD_ROWS_1 1
51
52
53/* -------------------------------------------------------------------------- */
54/* API PÚBLICA */
55/* -------------------------------------------------------------------------- */
56
66bool LCD_Init(void);
67
74void LCD_Clear(void);
75
82void LCD_SetCursor(uint8_t col, uint8_t row);
83
88void LCD_WriteChar(char c);
89
94void LCD_Write(const char *s);
95
102void LCD_WriteAt(uint8_t col, uint8_t row, char *s);
103
109void LCD_PrintCentered(uint8_t row, char *s);
110
115void LCD_Cursor(bool enable);
116
121void LCD_BlinkCursor(bool enable);
122
123
124#ifdef __cplusplus
125}
126#endif
127
128#endif /* DEV_LCD_H */
Primitivas de bajo nivel para LCD HD44780 vía PCF8574.
void LCD_PrintCentered(uint8_t row, char *s)
Centra un texto en la fila indicada.
Definition dev_LCD.c:128
void LCD_Write(const char *s)
Escribe una cadena ASCII (terminada en '\0').
Definition dev_LCD.c:117
bool LCD_Init(void)
Inicializa el LCD.
Definition dev_LCD.c:79
void LCD_WriteAt(uint8_t col, uint8_t row, char *s)
Escribe una cadena en la posición determinada (col,row).
Definition dev_LCD.c:123
void LCD_BlinkCursor(bool enable)
Habilita o deshabilita el parpadeo del cursor.
Definition dev_LCD.c:141
void LCD_SetCursor(uint8_t col, uint8_t row)
Posiciona el cursor en (col, row).
Definition dev_LCD.c:105
void LCD_Cursor(bool enable)
Habilita u deshabilita el cursor.
Definition dev_LCD.c:136
void LCD_Clear(void)
Limpia el display y posiciona el cursor en (0,0).
Definition dev_LCD.c:99
void LCD_WriteChar(char c)
Escribe un carácter en la posición actual del cursor.
Definition dev_LCD.c:112