 c4f084a991
			
		
	
	c4f084a991
	
	
	
		
			
			* add decodeIRJson and JSON remote option * handle JSON API commands also * removed code that forced IR codes in a certain range to be decoded by decodeIR24. Generate default ir.json files for currently supported remotes. * comment out printing API commands in IR handling * refactor decodeIRJson to change how ir.json is loaded add support for calling several c functions * Handle setting palette when effect is still on default solid and will not display it * remove colorUpdated notifier that was pasted in accidentally * Update to handle both 24-key and 24-key old remotes (#1969) * Update readme.md * Update ir.cpp Handle both 24-key and 24-key old in decodeIR switch statement * Re-add JSON remote option Co-authored-by: Scott Bailey <scottrbailey@gmail.com> Co-authored-by: Artacus <40248830+scottrbailey@users.noreply.github.com>
		
			
				
	
	
		
			47 lines
		
	
	
		
			761 B
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			761 B
		
	
	
	
		
			JSON
		
	
	
	
	
	
| {
 | |
|   "desc": "9-key",
 | |
|   "0xFF629D": {
 | |
|     "label": "Power",
 | |
|     "cmd": "T=2"
 | |
|   },
 | |
|   "0xFF22DD": {
 | |
|     "label": "A",
 | |
|     "cmnt": "Preset 1",
 | |
|     "cmd": "PL=1"
 | |
|   },
 | |
|   "0xFF02FD": {
 | |
|     "label": "B",
 | |
|     "cmnt": "Preset 2",
 | |
|     "cmd": "PL=2"
 | |
|   },
 | |
|   "0xFFC23D": {
 | |
|     "label": "C",
 | |
|     "cmnt": "Preset 3",
 | |
|     "cmd": "PL=3"
 | |
|   },
 | |
|   "0xFF30CF": {
 | |
|     "label": "Left",
 | |
|     "cmnt": "Speed -",
 | |
|     "cmd": "SI=~-16"
 | |
|   },
 | |
|   "0xFF7A85": {
 | |
|     "label": "Right",
 | |
|     "cmnt": "Speed +",
 | |
|     "cmd": "SI=~16"
 | |
|   },
 | |
|   "0xFF9867": {
 | |
|     "label": "Up",
 | |
|     "cmnt": "Bright +",
 | |
|     "cmd": "A=~16"
 | |
|   },
 | |
|   "0xFF38C7": {
 | |
|     "label": "Down",
 | |
|     "cmnt": "Bright -",
 | |
|     "cmd": "A=~-16"
 | |
|   },
 | |
|   "0xFF18E7": {
 | |
|     "label": "Select",
 | |
|     "cmnt": "Cycle effects",
 | |
|     "cmd": "CY=0&FX=~"
 | |
|   }
 | |
| } |