Hello guys, i want to communicate with my PC, so i just now how to do the Basic stuff, but if i want to receive values i had absolutly no idea how it works and i didnt found an example iam very new to c# and arduino aswell, maybe someone can help me with it and give me some examples how i can get the values from c# into my arduino.
My plan was for the first time to make mousemovents, i think it would be a good start for me.
You need windows code to send data over a communication link. If the communication link is USB then just use the serial COM port and send the bytes over, there are tons of tutorials for this, here is a random one
Once the data is sent you need to read it on the arduino side, I would suggest to study Serial Input Basics to handle this
The question probably belongs to a c# forum, but to read the mouse position (in screen coordinates ) you use the Cursor.Position Property
You extract the floating-point x- and y-coordinates to send them over the serial line. You either send them in binary (likely an IEEE compliant representation, mind endianness) or you send it over as ASCII after converting the float to a String ( ToString method).
yes but i think there is my Problem, that i dont know how i can send them to the arduino and put them into a variable that i can use for future things.