Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(18)  |  Call(18)  |  Derive(0)  |  Import(0)
Clean up by resetting all GPIO channels that have been used by this program to INPUT with no pullup/pulldown and no event detection

src/s/m/smokematic-0.1.0/smokematic/blower.py   smokematic(Download)
        PWM.start(blower_pin, 0)
        PWM.stop(blower_pin)
        PWM.cleanup()
 
    def get_speed(self):

src/a/d/Adafruit_BBIO-0.0.19/test/test_pwm_setup.py   Adafruit_BBIO(Download)
def teardown_module(module):
    PWM.cleanup()
 
class TestPwmSetup:    
    def test_start_pwm(self):
        assert int(duty) == 0
        assert int(period) == 500000
        PWM.cleanup()
 
    def test_start_pwm_with_polarity_one(self):
        assert int(period) == 500000
        assert int(polarity) == 1
        PWM.cleanup()      
 
    def test_start_pwm_with_polarity_default(self):
        assert int(period) == 500000
        assert int(polarity) == 0
        PWM.cleanup()         
 
    def test_start_pwm_with_polarity_zero(self):
        assert int(period) == 500000
        assert int(polarity) == 0
        PWM.cleanup()  
 
    def test_pwm_start_invalid_pwm_key(self):