Communicating with embedded systems using Python, part 2
This post follows on from my previous post about working with embedded systems using Python. I highly recommend starting off entering blocks of code (as in the previous post) into a REPL while you debug things, but once you’ve got that set up, it’s worth making the code reusable between projects for you and others to benefit. I’ll cover how to do that and a few other possible improvements Refactor the code into a class You might already see how you could put the connection and setup code into an OptoForce....