[Keyboard] CannonKeys Instant60 Keyboard (#5433)
* Instant 60
* Instant60 changes again
* turn off LSE and features
* Working RGB underglow 🎉
* Add missing files
* Update keymap to have reset
* Backlighting on
* Backlight code for instant60
* Move 072 files to common folder and use it in Instant60
* Updates
* Update keyboards/cannonkeys/instant60/rules.mk
Co-Authored-By: awkannan <andrew.kannan@klaviyo.com>
			
			
This commit is contained in:
		
							parent
							
								
									3a2eb68e9e
								
							
						
					
					
						commit
						99a8628383
					
				
					 20 changed files with 3597 additions and 0 deletions
				
			
		
							
								
								
									
										20
									
								
								keyboards/cannonkeys/stm32f072/ws2812.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								keyboards/cannonkeys/stm32f072/ws2812.h
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,20 @@
 | 
			
		|||
#pragma once
 | 
			
		||||
 | 
			
		||||
#include "hal.h"
 | 
			
		||||
#include "rgblight_types.h"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
void set_leds_color_rgb(LED_TYPE color);
 | 
			
		||||
void set_led_color_rgb(LED_TYPE color, int pos);
 | 
			
		||||
void leds_init(void);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 // This is what users will use to interface with this
 | 
			
		||||
void ws2812_setleds(LED_TYPE *ledarray, uint16_t number_of_leds);
 | 
			
		||||
void ws2812_setleds_rgbw(LED_TYPE *ledarray, uint16_t number_of_leds);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
void WS2812_init(void);
 | 
			
		||||
void WS2812_set_color( uint8_t index, uint8_t red, uint8_t green, uint8_t blue );
 | 
			
		||||
void WS2812_set_color_all( uint8_t red, uint8_t green, uint8_t blue );
 | 
			
		||||
void WS2812_send_colors(void);
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue