-
Notifications
You must be signed in to change notification settings - Fork 19
Description
During test of a custom made data logger I have found that values generated by the Pico is more than 6 times lower than when measured by a multimeter and also from an Arduino Nano using the Adafruit library.
Same INA219 and simple test circuit is used for both the Pico and the Nano tests.
I am waiting for another Pico but the unit used for testing has worked well so far so I doubt the problem is there.
Vscode shows 2 errors for the ina219.py module. One error at line 258 "raise DeviceRangeError(self.__GAIN_VOLTS[self._gain])" and another at line 409 "if logging._level == logging.DEBUG:" but I am not skilled enough to fix these.
First error shows "Argument of type "int | ... | Unknown | None" cannot be assigned to parameter "__s" of type "slice" in function "getitem"
Type "int | ... | Unknown | None" cannot be assigned to type "slice"
"int" is incompatible with "slice"
Second error is reported as "(function) _level: Unknown
"_level" is not a known member of module "logging"
A text file with some more info is attached.
Ina219.txt