Add corne keyboard (#3119)
* Fork from helix * Move rev2 to rev1 * Remove unused settings * Move split_util to outof rev * Setup KEYMAP for crkbd * Remove old image * Move keymaps directory and glcdfont.c * Remove AUDIO in keymap * Show keylog * Show keylogs * Show time log * Remove EISU/KANA * Use KEYMAP_kc * Remove iota_gfx_record_user wrapping * Remove unused settings for layer * Add keylogger.c * Fix uppercase letters to lower * Add timelogger.c * Default RGBLED_NUM = 27 * Remove unused setting * Add mode icon reader * Add matrix_write_ln * Add layer_state_reader * Move to lib directory * Rename functions * Add host_led_state_reader * Add logo_reader * Cleaning of iota_gfx_task * Fix bugs and add key defines * Remove unnecessary comments * Update crkbd readme * Move libs to lib directories * Rename KEYMAP to LAYOUT
This commit is contained in:
		
							parent
							
								
									300cf977c9
								
							
						
					
					
						commit
						710937e4ef
					
				
					 29 changed files with 2710 additions and 0 deletions
				
			
		
							
								
								
									
										17
									
								
								keyboards/crkbd/keymaps/lib/timelogger.c
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								keyboards/crkbd/keymaps/lib/timelogger.c
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,17 @@
 | 
			
		|||
#include "crkbd.h"
 | 
			
		||||
 | 
			
		||||
char timelog[40] = {};
 | 
			
		||||
int last_time = 0;
 | 
			
		||||
int elapsed_time = 0;
 | 
			
		||||
 | 
			
		||||
void set_timelog(void)
 | 
			
		||||
{
 | 
			
		||||
  elapsed_time = timer_elapsed(last_time);
 | 
			
		||||
  last_time = timer_read();
 | 
			
		||||
  snprintf(timelog, sizeof(timelog), "lt:%5d, et:%5d", last_time, elapsed_time);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
char *read_timelog(void)
 | 
			
		||||
{
 | 
			
		||||
  return timelog;
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue