Ciro Edgardo Romero
/
FoodDeposit
Sistema de supervision y alarma para deposito de comida de animales
Diff: modules/display/display.h
- Revision:
- 0:5e7248732177
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/modules/display/display.h Fri May 14 17:27:28 2021 +0000 @@ -0,0 +1,34 @@ +//=====[#include guards - begin]=============================================== + +#ifndef _DISPLAY_H_ +#define _DISPLAY_H_ + +//=====[Libraries]============================================================= + +#include "mbed.h" + +//=====[Declaration of public defines]======================================= + +//=====[Declaration of public data types]====================================== + +typedef enum { + DISPLAY_CONNECTION_GPIO_4BITS, + DISPLAY_CONNECTION_GPIO_8BITS, + DISPLAY_CONNECTION_I2C_PCF8574_IO_EXPANDER, +} displayConnection_t; + +typedef struct { + displayConnection_t connection; +} display_t; + +//=====[Declarations (prototypes) of public functions]========================= + +void displayInit( displayConnection_t connection ); + +void displayCharPositionWrite( uint8_t charPositionX, uint8_t charPositionY ); + +void displayStringWrite( char const * str ); + +//=====[#include guards - end]================================================= + +#endif // _DISPLAY_H_ \ No newline at end of file