I'm facing an issue when I attempt to execute my Arduino-related code. I run the software, set it to any available COM port, and I get a 'no write object' error before I even connect to the read_adruino function. It seems like there's a problem with passing the serial object between functions. Has anyone encountered this issue and can offer advice? I've shared my code here: https://github.com/xanthium-enterprises/python-tkinter-ttkbootstrap-csv-text-file-data-logger-arduino
2 Answers
When you say the error occurs in the adruino_read function, it seems like the serial object might not be properly initialized or passed from the adruino_write function. Check if you're creating the serial object in the right scope so the read function can access it.
It sounds like you're running into a scope issue. Can you provide more details about which functions you're using specifically? Also, what is the exact error message you're getting? That could help narrow things down!
Yeah, I'm getting 'Serial.write is not defined' when I try to call it.