w
This commit is contained in:
		
							parent
							
								
									16fc4aa682
								
							
						
					
					
						commit
						244a09d9d1
					
				
					 2 changed files with 4 additions and 3 deletions
				
			
		
							
								
								
									
										4
									
								
								leds.py
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								leds.py
									
										
									
									
									
								
							|  | @ -53,7 +53,7 @@ class Adafruit_CharLCD: | ||||||
|     LCD_5x10DOTS = 0x04 |     LCD_5x10DOTS = 0x04 | ||||||
|     LCD_5x8DOTS = 0x00 |     LCD_5x8DOTS = 0x00 | ||||||
| 
 | 
 | ||||||
|     def __init__(self, pin_rs=24, pin_e=23, pin_b=04, pins_db=[17, 18, 27, 22], GPIO=None): |     def __init__(self, pin_rs=24, pin_e=23, pin_b=4, pins_db=[17, 25, 27, 22], pin_rgb=18, GPIO=None): | ||||||
|         # Emulate the old behavior of using RPi.GPIO if we haven't been given |         # Emulate the old behavior of using RPi.GPIO if we haven't been given | ||||||
|         # an explicit GPIO interface to use |         # an explicit GPIO interface to use | ||||||
|         if not GPIO: |         if not GPIO: | ||||||
|  | @ -276,7 +276,7 @@ def querycolor(): | ||||||
| def loop(): | def loop(): | ||||||
|     lcd = Adafruit_CharLCD() |     lcd = Adafruit_CharLCD() | ||||||
|     level = 0 |     level = 0 | ||||||
|     level_max = 15 |     level_max = 14 | ||||||
|     idle = 0 |     idle = 0 | ||||||
|     idle_max = 15 |     idle_max = 15 | ||||||
|     cur_color = "ffffff" |     cur_color = "ffffff" | ||||||
|  |  | ||||||
							
								
								
									
										1
									
								
								requirements.txt
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								requirements.txt
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1 @@ | ||||||
|  | rpi_ws281x==4.2.5 | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue