Moved private methods to their section.

This commit is contained in:
FMC
2012-02-18 20:33:43 +01:00
parent 1c2ce39579
commit 867d8719b9
2 changed files with 20 additions and 17 deletions
+19 -16
View File
@@ -107,6 +107,24 @@ void LiquidCrystal::send(uint8_t value, uint8_t mode)
waitUsec ( EXEC_TIME ); // wait for the command to execute by the LCD
}
//
// setBackligh
void LiquidCrystal::setBacklight ( uint8_t mode )
{
if ( _backlightPin != LCD_NOBACKLIGHT )
{
digitalWrite ( _backlightPin, mode );
}
}
//
// setBacklightPin
void LiquidCrystal::setBacklightPin ( uint8_t pin )
{
pinMode ( pin, OUTPUT ); // Difine the backlight pin as output
_backlightPin = pin;
}
// PRIVATE METHODS
// ---------------------------------------------------------------------------
@@ -181,6 +199,7 @@ void LiquidCrystal::init(uint8_t fourbitmode, uint8_t rs, uint8_t rw, uint8_t en
// Initialise the backlight pin no nothing
_backlightPin = LCD_NOBACKLIGHT;
}
//
// pulseEnable
void LiquidCrystal::pulseEnable(void)
@@ -203,20 +222,4 @@ void LiquidCrystal::writeNbits(uint8_t value, uint8_t numBits)
pulseEnable();
}
//
// setBackligh
void LiquidCrystal::setBacklight ( uint8_t mode )
{
if ( _backlightPin != LCD_NOBACKLIGHT )
{
digitalWrite ( _backlightPin, mode );
}
}
//
// setBacklightPin
void LiquidCrystal::setBacklightPin ( uint8_t pin )
{
pinMode ( pin, OUTPUT ); // Difine the backlight pin as output
_backlightPin = pin;
}
+1 -1
View File
@@ -211,7 +211,7 @@ void LiquidCrystal_I2C::write4bits ( uint8_t value, uint8_t mode )
}
//
// write4bits
// pulseEnable
void LiquidCrystal_I2C::pulseEnable (uint8_t _data)
{
_i2cio.write (_data | _En); // En HIGH