Starting on integrating KLOR OLED
- Added default rotation - need to review the screen to know what the hex code means
This commit is contained in:
		
							parent
							
								
									81b0596b0a
								
							
						
					
					
						commit
						1822862388
					
				
					 1 changed files with 5 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -98,9 +98,7 @@ void render_oled_main(void) {
 | 
			
		|||
bool oled_task_user(void) {
 | 
			
		||||
 | 
			
		||||
  if (is_keyboard_master()) {
 | 
			
		||||
 | 
			
		||||
    render_oled_main();  // Renders the current keyboard state (layer, lock, caps, scroll, etc)
 | 
			
		||||
 | 
			
		||||
  } else {
 | 
			
		||||
 | 
			
		||||
#if defined(KEYBOARD_barbellboards_rollow)
 | 
			
		||||
| 
						 | 
				
			
			@ -121,14 +119,14 @@ bool oled_task_user(void) {
 | 
			
		|||
 | 
			
		||||
oled_rotation_t oled_init_user(oled_rotation_t rotation) {
 | 
			
		||||
 | 
			
		||||
#if defined(KEYBOARD_klor_2040)
 | 
			
		||||
  return OLED_ROTATION_0;
 | 
			
		||||
#else
 | 
			
		||||
  if (is_keyboard_master()) {
 | 
			
		||||
 | 
			
		||||
    return OLED_ROTATION_270;
 | 
			
		||||
 | 
			
		||||
  } else {
 | 
			
		||||
 | 
			
		||||
    return OLED_ROTATION_0;
 | 
			
		||||
 | 
			
		||||
    return OLED_ROTATION_0;   
 | 
			
		||||
  }
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue