Fix AVR ws2812 when ADDRESS_BASE is non zero (#8646)
* Fix AVR ws2812 when ADDRESS_BASE is non zero * fix port * remove unused function defs
This commit is contained in:
		
							parent
							
								
									2b427f774a
								
							
						
					
					
						commit
						31fd0cbc1c
					
				
					 3 changed files with 17 additions and 35 deletions
				
			
		| 
						 | 
				
			
			@ -27,19 +27,6 @@
 | 
			
		|||
 | 
			
		||||
extern rgblight_config_t rgblight_config;
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * Forward declare internal functions
 | 
			
		||||
 *
 | 
			
		||||
 * The functions take a byte-array and send to the data output as WS2812 bitstream.
 | 
			
		||||
 * The length is the number of bytes to send - three per LED.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
void ws2812_sendarray(uint8_t *array, uint16_t length);
 | 
			
		||||
void ws2812_sendarray_mask(uint8_t *array, uint16_t length, uint8_t pinmask);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
void rgblight_set(void) {
 | 
			
		||||
    if (!rgblight_config.enable) {
 | 
			
		||||
        for (uint8_t i = 0; i < RGBLED_NUM; i++) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue