Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: CMSIS_DSP_401 GPS MPU9150_DMP PID QuaternionMath Servo mbed
Fork of SolarOnFoils_MainModule_20150518 by
Diff: LCD_I2C.h
- Revision:
- 0:81b21910454e
- Child:
- 2:f6d058931b17
diff -r 000000000000 -r 81b21910454e LCD_I2C.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LCD_I2C.h Tue Jun 23 13:55:28 2015 +0000 @@ -0,0 +1,48 @@ +////////////////////////////////////////////////////////////////////////////////////// +// // +// File : LCD_I2C.h // +// Version : 0.2 // +// Date : 25 march 2015 // +// Author : Dany Brugman // +// Comment : Function to write data to a 2x16 LCD by I2C // +// using a MCP23017 port expander. // +// // +// Changelog : // +// Date: Name: Comment: // +// 25/03/2015 DNB First version // +// 25/03/2015 DNB implemntation LCD_printPos // +// // +////////////////////////////////////////////////////////////////////////////////////// + +#ifndef ____LCD_I2C__ +#define ____LCD_I2C__ + +////////////////////////////////////////////////////////////////////////////////////// +// includes // +////////////////////////////////////////////////////////////////////////////////////// + +#include <stdio.h> +#include "MCP23017.h" + +////////////////////////////////////////////////////////////////////////////////////// +// functions // +////////////////////////////////////////////////////////////////////////////////////// + +void vLCD_delay_I2C (unsigned int t_delay); // delay up to 65535 ticks +void vLCD_cmd_I2C (unsigned char commando); // send commando to LCD +void vLCD_data_I2C (unsigned char data); // write single character to LCD +void vLCD_init_I2C (void); // init LCD +void vLCD_clear_I2C (void); // clear LCD +// write a string to certain line +void vLCD_printLine_I2C (unsigned char *string, unsigned char line); +// write a string to certain line +void vLCD_printPos_I2C (unsigned char *sting, unsigned char line, unsigned char character); +// write a integer to certain line +void vLCD_printInt_I2C (int value, unsigned char line, unsigned char character); +// update lcd +void vLCD_update (void); +#endif /* defined(____LCD_I2C__) */ + +////////////////////////////////////////////////////////////////////////////////////// +// EOF // +////////////////////////////////////////////////////////////////////////////////////// \ No newline at end of file