parent
							
								
									f3920743aa
								
							
						
					
					
						commit
						92d3724dcd
					
				| @ -0,0 +1,15 @@ | ||||
| #!/bin/env python3 | ||||
| import gex | ||||
| import time | ||||
| 
 | ||||
| with gex.Client(gex.TrxRawUSB()) as client: | ||||
|     # Neopixel strip | ||||
|     strip = gex.Neopixel(client, 'neo') | ||||
|     # Load RGB to the strip | ||||
|     strip.load([0xFF0000, 0xFFFF00, 0x00FF00, 0x0000FF, 0xFF00FF]) | ||||
|      | ||||
|     for i in range(0,255): | ||||
|         strip.load([0xFF0000+i, 0xFFFF00, 0x00FF00, 0x0000FF, 0xFF00FF]) | ||||
|         time.sleep(0.001) | ||||
|          | ||||
|     strip.clear() | ||||
| @ -0,0 +1,9 @@ | ||||
| #!/bin/env python3 | ||||
| import gex | ||||
| import time | ||||
| 
 | ||||
| with gex.Client(gex.TrxRawUSB()) as client: | ||||
|     out = gex.DOut(client, 'out') | ||||
| 
 | ||||
|     out.pulse_us([0], 20) | ||||
|     out.pulse_us([3], 10) | ||||
					Loading…
					
					
				
		Reference in new issue