<filename>tests/mokcam/halerror.py<gh_stars>0
# test hal errors

import pyb

i2c = pyb.I2C(2, pyb.I2C.MASTER)
try:
    i2c.recv(1, 1)
except OSError as e:
    print(repr(e))

<filename>tests/mokcam/halerror.py<gh_stars>0
# test hal errors

import pyb

i2c = pyb.I2C(2, pyb.I2C.MASTER)
try:
    i2c.recv(1, 1)
except OSError as e:
    print(repr(e))

# test hal errors