Posts by Mateus Guilherme • 39 points
3 posts
-
1
votes1
answer30
viewsA: Get the same value as an Arduino subtraction with Python
in accordance with: https://stackoverflow.com/questions/68614950/how-to-convert-a-number-to-signed-short-in-python In python to get the same value in the result just limit in 16bits the subtraction…
pythonanswered Mateus Guilherme 39 -
-1
votes1
answer30
viewsQ: Get the same value as an Arduino subtraction with Python
The following code on the Arduine yields the value 26. int a = 32760; int b = -32750; void setup() { Serial.begin(9600); } void loop() { Serial.println(b-a); } I would like to send these two values…
pythonasked Mateus Guilherme 39 -
2
votes1
answer71
viewsQ: Doubt Socket Server
I have a question in the behavior of the chunk of a code that is creating a socket server, follows the server code: public class Server { public static void main(String args[]){ try { ServerSocket…