EdgePi-Cloud / edgepi-python-sdk

Python SDK to control EdgePi, an industrial PC/PLC/IoT device powered by Raspberry Pi CM4
MIT License
5 stars 3 forks source link

Dev i2c #379 #380

Closed sjpark608 closed 1 year ago

sjpark608 commented 1 year ago

Closes #379

I2C/SPI refactored to use context manger to handle closing the device

farzadpanahi commented 1 year ago

@sjpark608 as discussed, please add integration tests to blast i2c and spi devices over the limit of file descriptors to see if any issue happens.

github-actions[bot] commented 1 year ago

Code Coverage

Package Line Rate Branch Rate Health
adc 91% 89%
calibration 100% 100%
dac 100% 97%
digital_input 100% 100%
digital_output 98% 95%
eeprom 83% 63%
eeprom.protobuf_assets.eeprom_data_classes 97% 52%
eeprom.protobuf_assets.generated_pb2 79% 50%
gpio 98% 94%
led 0% 0%
peripherals 90% 50%
pwm 99% 98%
reg_helper 97% 85%
relay 100% 100%
tc 98% 98%
utilities 100% 100%
Summary 93% (3063 / 3293) 82% (638 / 781)