The other day I had some time to do some programming but I didn't have access to my hardware to do testing while programming. I ended up refactoring a lot of code and without testing it.
The next morning, tests failed, go figure ;)
I found the issue and I also found another bug in the code. A win, but fixing that cost me lab time, so tests are pretty important if you touch a lot of your code base. I was confident that the refactoring wouldn't break anything. I was wrong. Always run the tests while refactoring.
Having a computer connected to the hardware and run the code on that remotely. I could test it without the need of being in the lab at all.
Since the GSD uses the MCP2221A for I2C. I can expose that functionality using embedded hal I2C traits in the device layer API. This would make the GSD into a general purpose USB -> I2C device, that is not all since there is a controllable LDO you can supply power as well from 0.9 - 5 volts at max 50mA.
This would turn the GSD into a general purpose USB to I2C adapter with level shifting, power output and protection features. Pair that with a cable of your choice you can do a lot of things, a soic clip cable for reading eeproms, QWIIC cable for interfacing with that stuff and what not. Which is hopefully useful to someone other than myself.
Anders Helgesson
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.