Help with Object Error in My Arduino Code

0
9
Asked By CleverCloud123 On

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

Answered By TechieTom2020 On

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.

Answered By FriendlyCoder99 On

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!

CuriousDev56 -

Yeah, I'm getting 'Serial.write is not defined' when I try to call it.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.