14 lines
		
	
	
		
			436 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			436 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include "main.h"
 | |
| #include "cmd_parser.h"
 | |
| 
 | |
| /*
 | |
| Usage: led set|get [-p PNUM | --power=PNUM] [-w CHOICES | --which=CHOICES] [-m COICES | --mode=CHOICES]
 | |
|     -p, --power     set or get power 0-100
 | |
|     -w, --which     set or get specific leds [Atop, Abot, Btop, Bbot, Ctop, Cbot, all]
 | |
|     -m, --mode      set or get mode of operation [allways_on, scan]
 | |
| */
 | |
| // cmd_parser_t led_cmd;
 | |
| 
 | |
| result_t parse_callback(char key, char *arg); |