File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 3030__repo__  =  "https://github.com/adafruit/Adafruit_CircuitPython_NeoKey.git" 
3131
3232from  micropython  import  const 
33- from  adafruit_seesaw . neopixel  import  NeoPixel 
33+ from  adafruit_seesaw  import  neopixel 
3434from  adafruit_seesaw .seesaw  import  Seesaw 
3535
3636try :
@@ -56,8 +56,12 @@ def __init__(
5656    ) ->  None :
5757        super ().__init__ (i2c_bus , addr )
5858        self .interrupt_enabled  =  interrupt 
59-         self .pixels  =  NeoPixel (
60-             self , _NEOKEY1X4_NEOPIX_PIN , _NEOKEY1X4_NUM_KEYS , brightness = 0.2 
59+         self .pixels  =  neopixel .NeoPixel (
60+             self ,
61+             _NEOKEY1X4_NEOPIX_PIN ,
62+             _NEOKEY1X4_NUM_KEYS ,
63+             brightness = 0.2 ,
64+             pixel_order = neopixel .GRB ,
6165        )
6266        # set the pins to inputs, pullups 
6367        for  b  in  range (4 , 8 ):
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments