Change DRIVER_LED_COUNT to {LED,RGB}_MATRIX_LED_COUNT (#18399)
				
					
				
			This commit is contained in:
		
							parent
							
								
									d967de0df7
								
							
						
					
					
						commit
						36c410592d
					
				
					 577 changed files with 836 additions and 831 deletions
				
			
		| 
						 | 
				
			
			@ -27,7 +27,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		|||
#define DEBOUNCE 0
 | 
			
		||||
 | 
			
		||||
/* RGB matrix constants */
 | 
			
		||||
#define DRIVER_LED_TOTAL 64
 | 
			
		||||
#define RGB_MATRIX_LED_COUNT 64
 | 
			
		||||
 | 
			
		||||
// RGB Matrix Animation modes. Explicitly enabled
 | 
			
		||||
// For full list of effects, see:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -89,7 +89,7 @@ static void set_color(int index, uint8_t r, uint8_t g, uint8_t b) {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
static void set_color_all(uint8_t r, uint8_t g, uint8_t b) {
 | 
			
		||||
  for (int i=0; i<DRIVER_LED_TOTAL; i++)
 | 
			
		||||
  for (int i=0; i<RGB_MATRIX_LED_COUNT; i++)
 | 
			
		||||
    set_color(i, r, g, b);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue