qwiic_kx13x.py

I am working with my sensors that have SFE Python modules and in testing the KX134 with Thonny there was an encoding error in the supplied module. i got past that by opening it with Leafpad and copping the contents to a Mousepad document and saving. next I got an error because the example was loading BASIC-SETTINGS when it should have been loading DEFAULT_SETTNGS. This so not helpful.

Dale

Sorry for your frustrations! We’ll pass this along to the software team and hopefully it’ll get corrected soon

Hi! I installed the library today and am experiencing the same encoding issue as described above pointing to line 334 in qwiic_kx13x.py

SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xa0 in position 173: invalid start byte

How can I fix the code so that I’m able to use the accelerometer?

I was able to correct this error by deleting the Latin Character (looked like a question mark) from line 331 of qwiic_kx13x.py inside the comment.