Buff
Member
YellowAfterlife has kindly performed a much needed refresh of this asset. You can find the source code and release here.
I finally got around to fixing the Arduino DLL, it should now work with no problems on Windows 10 in GM:S and GM8.
This DLL allows you to connect to multiple Arduino microcontrollers and read and write data to them. I have successfully tested it with an Arduino Uno. Here is a list of the available functions:
arduino_create(com, baud) - Creates a new Arduino connection and returns the id.
arduino_connected(id) - Checks to see if an Arduino is connected.
arduino_read(id, length) - Reads a string of a certain length from the Arduino.
arduino_read_to(id, char) - Reads to a delimiter character and returns the read string.
arduino_read_line(id) - Reads to the end line character.
arduino_write(id, buffer, length) - Writes a string to an Arduino.
arduino_delete(id) - Destroys the connection to the Arduino, freeing it from memory.
arduino_destroy() - Destroys the connection to all Arduinos and frees them from memory.
Update 1.0.1
Added the ability to set the baud rate in the arduino_create function.
Here is a link to YellowAfterlife's updated version.
Here is a link to the Marketplace Asset.
And here is a download link which you can use without the marketplace, it also includes the example Arduino code, the GM8 gmk, and the C++ source code.
Enjoy,
Buff
I finally got around to fixing the Arduino DLL, it should now work with no problems on Windows 10 in GM:S and GM8.
This DLL allows you to connect to multiple Arduino microcontrollers and read and write data to them. I have successfully tested it with an Arduino Uno. Here is a list of the available functions:
arduino_create(com, baud) - Creates a new Arduino connection and returns the id.
arduino_connected(id) - Checks to see if an Arduino is connected.
arduino_read(id, length) - Reads a string of a certain length from the Arduino.
arduino_read_to(id, char) - Reads to a delimiter character and returns the read string.
arduino_read_line(id) - Reads to the end line character.
arduino_write(id, buffer, length) - Writes a string to an Arduino.
arduino_delete(id) - Destroys the connection to the Arduino, freeing it from memory.
arduino_destroy() - Destroys the connection to all Arduinos and frees them from memory.
Update 1.0.1
Added the ability to set the baud rate in the arduino_create function.
Here is a link to YellowAfterlife's updated version.
Here is a link to the Marketplace Asset.
And here is a download link which you can use without the marketplace, it also includes the example Arduino code, the GM8 gmk, and the C++ source code.
Enjoy,
Buff
Last edited: