Jump to content

lucabianco97

New Members
  • Posts

    1
  • Joined

  • Last visited

Reputation

2 Neutral
  1. Hello, Did you connect via Serial or via TCP? I'm using KSP 1.10.1.2939 and trying to connect an Arduino Uno so I have to connect via a serial port. I tried the simplest example, and it compiles great on Arduino IDE but then it doesn't connect . Something's in the mod is probably broken with this version of KSP... Which isn't surprising if it hasn't been updated since October 2018. #include <krpc.h> #include <krpc/services/krpc.h> #include <krpc/services/space_center.h> HardwareSerial *conn; void setup() { pinMode(LED_BUILTIN, OUTPUT); digitalWrite(LED_BUILTIN, LOW); conn = &Serial; // Open the serial port connection krpc_open(&conn, NULL); // Set up communication with the server while (krpc_connect(conn, "Arduino Example") != KRPC_OK); // Indicate succesful connection by lighting the on-board LED digitalWrite(LED_BUILTIN, HIGH); } void loop() { } I'll try with another version of KSP, since I really want real switches and buttons. BTW, this is what I'm working on (yes the holes for the buttons are terribly spaced: the manufacturing process is still... in progress haha):
×
×
  • Create New...