コード例 #1
0
def test_lcdbothbad():
    test = serialversion2.lcd_control()
    onoff = test.lcdoff(4,10)
    if onoff != 0:
        raise AssertionError()
    else:
        print("passes test")
コード例 #2
0
def test_lcddistancehigh():
    test = serialversion2.lcd_control()
    onoff = test.lcdoff(80,40)
    if onoff != 0:
        raise AssertionError()
    else:
        print("passes test")
コード例 #3
0
def test_lcdbothgood():
    test = serialversion2.lcd_control()
    onoff = test.lcdoff(10,40)
    if onoff != 1:
        raise AssertionError()
    else:
        print("passes test")
コード例 #4
0
def test_lcdright():
    test = serialversion2.lcd_control()
    onoff = test.lcdon(10)
    if onoff != 1:
        raise AssertionError()
    else:
        print("passes test")
コード例 #5
0
def test_lcdlow():
    
    test = serialversion2.lcd_control()
    onoff = test.lcdon(4)
    if onoff != 0:
        raise AssertionError()
    else:
        print("passes test")