Subversion Repositories group.electronics

Rev

Rev 43 | Rev 45 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 43 Rev 44
Line 41... Line 41...
41
 
41
 
42
 
42
 
43
void lcd_send(uint8_t value, uint8_t mode) {
43
void lcd_send(uint8_t value, uint8_t mode) {
44
	uint8_t high = value & 0xf0;
44
	uint8_t high = value & 0xf0;
45
	uint8_t low = (value << 4) & 0xf0;
45
	uint8_t low = (value << 4) & 0xf0;
46
	lcd_sendNib((high)|mode);
46
	lcd_pulse((high)|mode);
47
	lcd_sendNib((low)|mode);
47
	lcd_pulse((low)|mode);
48
}
48
}
49
 
49
 
50
void lcd_sendNib(uint8_t nib) {
50
void lcd_sendNib(uint8_t nib) {
51
	//lcd_write(nib);
51
	//lcd_write(nib);
52
	lcd_pulse(nib);
52
	lcd_pulse(nib);