Exemplo n.º 1
0
def test():
    eq_(ArduinoCore.digitalPinToBitMask(2), 4)
    eq_(ArduinoCore.digitalPinToPort(2), 4)
    eq_(ArduinoCore.portModeRegister(2), 0)
    eq_(ArduinoCore.digitalPinToTimer(2), 0)
    eq_(ArduinoCore.analogInPinToBit(2), 2)

    eq_(ArduinoCore.portOutputRegister(2), 0)
    eq_(ArduinoCore.portInputRegister(2), 0)
    eq_(ArduinoCore.totalPinCount(), 20)
    ok_vcc(ArduinoCore.readVcc())
    eq_(ArduinoCore.model(), config['model'])
Exemplo n.º 2
0
def test_vcc2():
    vcc = Vcc(RegisterFeature())
    ok_vcc(vcc.read())
Exemplo n.º 3
0
def test_vcc():
    a = ArduinoTree()
    ok_vcc(a.vcc.read())