Update lcd.c
Dieser Commit ist enthalten in:
		
							Ursprung
							
								
									f2746b5ff9
								
							
						
					
					
						Commit
						94c5e66678
					
				
							
								
								
									
										12
									
								
								lcd.c
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								lcd.c
									
									
									
									
									
								
							@ -103,7 +103,7 @@ void lcd_data(uint8_t data[], uint16_t size) {
 | 
			
		||||
    i2c_stop();
 | 
			
		||||
}
 | 
			
		||||
#pragma mark -
 | 
			
		||||
#pragma mark GENERAL FUNKTIONS
 | 
			
		||||
#pragma mark GENERAL FUNCTIONS
 | 
			
		||||
void lcd_init(uint8_t dispAttr){
 | 
			
		||||
    i2c_init();
 | 
			
		||||
    uint8_t commandSequence[sizeof(init_sequence)+1];
 | 
			
		||||
@ -165,6 +165,16 @@ void lcd_invert(uint8_t invert){
 | 
			
		||||
    }
 | 
			
		||||
    lcd_command(commandSequence, 1);
 | 
			
		||||
}
 | 
			
		||||
void lcd_sleep(uint8_t sleep){
 | 
			
		||||
    i2c_start((LCD_I2C_ADR << 1) | 0);
 | 
			
		||||
    uint8_t commandSequence[1];
 | 
			
		||||
    if (sleep != YES) {
 | 
			
		||||
        commandSequence[0] = 0xAF;
 | 
			
		||||
    } else {
 | 
			
		||||
        commandSequence[0] = 0xAE;
 | 
			
		||||
    }
 | 
			
		||||
    lcd_command(commandSequence, 1);
 | 
			
		||||
}
 | 
			
		||||
void lcd_set_contrast(uint8_t contrast){
 | 
			
		||||
    uint8_t commandSequence[2] = {0x81, contrast};
 | 
			
		||||
    lcd_command(commandSequence, sizeof(commandSequence));
 | 
			
		||||
 | 
			
		||||
		Laden…
	
	
			
			x
			
			
		
	
		In neuem Issue referenzieren
	
	Einen Benutzer sperren