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'])
def test_vcc2(): vcc = Vcc(RegisterFeature()) ok_vcc(vcc.read())
def test_vcc(): a = ArduinoTree() ok_vcc(a.vcc.read())