From c4223ee955f9af546b9ece9a0ef8d77f9c8b03d8 Mon Sep 17 00:00:00 2001 From: ritu Date: Sat, 2 Jun 2018 21:14:06 +0530 Subject: simplified Pins and boards,double click issue, SynchronizeREalTime added --- OpenModelicaArduino/Resources/Images/Blink.png | Bin 0 -> 106798 bytes .../Resources/Images/BlinkingLEDModel.png | Bin 0 -> 9687 bytes .../Resources/Images/CustomExample.png | Bin 0 -> 55291 bytes .../Resources/Images/DefaultSynchronize.png | Bin 0 -> 27764 bytes OpenModelicaArduino/Resources/Images/Dimming.png | Bin 0 -> 106641 bytes .../Resources/Images/FirmataLocation.png | Bin 0 -> 33536 bytes OpenModelicaArduino/Resources/Images/Interval.png | Bin 0 -> 25627 bytes .../Resources/Images/ModelPlugDocumentation-1.png | Bin 0 -> 181717 bytes .../Resources/Images/ModelPlugDocumentation-2.png | Bin 0 -> 18389 bytes .../Resources/Images/ModelPlugDocumentation-3.png | Bin 0 -> 22183 bytes .../Resources/Images/ModelPlugLog-nomarkers.png | Bin 0 -> 32933 bytes .../Resources/Images/ModelPlugLog-withmarkers.png | Bin 0 -> 30569 bytes OpenModelicaArduino/Resources/Images/PinNumber.png | Bin 0 -> 3138 bytes .../Resources/Images/QuotedSerialPort.png | Bin 0 -> 6785 bytes .../Resources/Images/ReadAnalog.png | Bin 0 -> 110825 bytes .../Resources/Images/SerialPortLocation.png | Bin 0 -> 37429 bytes .../Resources/Images/ServoExample.png | Bin 0 -> 117766 bytes .../Resources/Images/SimpleONOFF.png | Bin 0 -> 137660 bytes .../Resources/Images/StandardFirmata.png | Bin 0 -> 56447 bytes OpenModelicaArduino/Resources/Images/StopTime.png | Bin 0 -> 15893 bytes .../Resources/Images/SynchronizeSetting.png | Bin 0 -> 15362 bytes OpenModelicaArduino/Resources/Images/Thumbs.db | Bin 0 -> 38912 bytes .../Resources/Images/analogInput.png | Bin 0 -> 4531 bytes .../Resources/Images/analogOutput.png | Bin 0 -> 4588 bytes OpenModelicaArduino/Resources/Images/arduino.png | Bin 0 -> 5855 bytes .../Resources/Images/arduinoLeonardo.png | Bin 0 -> 5922 bytes OpenModelicaArduino/Resources/Images/custom.png | Bin 0 -> 5411 bytes .../Resources/Images/digitalInput.png | Bin 0 -> 4514 bytes .../Resources/Images/digitalOutput.png | Bin 0 -> 4577 bytes OpenModelicaArduino/Resources/Images/example1.png | Bin 0 -> 28754 bytes OpenModelicaArduino/Resources/Images/example2.png | Bin 0 -> 30650 bytes OpenModelicaArduino/Resources/Images/features.png | Bin 0 -> 37820 bytes OpenModelicaArduino/Resources/Images/front.png | Bin 0 -> 46421 bytes OpenModelicaArduino/Resources/Images/servo.png | Bin 0 -> 5171 bytes OpenModelicaArduino/Resources/Images/standard.png | Bin 0 -> 5606 bytes .../Resources/Include/modelPlugFirmata.h | 32 +++++++++++++++++++++ .../Library/linux64/libmodelPlugFirmata.so | Bin 0 -> 65528 bytes 37 files changed, 32 insertions(+) create mode 100644 OpenModelicaArduino/Resources/Images/Blink.png create mode 100644 OpenModelicaArduino/Resources/Images/BlinkingLEDModel.png create mode 100644 OpenModelicaArduino/Resources/Images/CustomExample.png create mode 100644 OpenModelicaArduino/Resources/Images/DefaultSynchronize.png create mode 100644 OpenModelicaArduino/Resources/Images/Dimming.png create mode 100644 OpenModelicaArduino/Resources/Images/FirmataLocation.png create mode 100644 OpenModelicaArduino/Resources/Images/Interval.png create mode 100644 OpenModelicaArduino/Resources/Images/ModelPlugDocumentation-1.png create mode 100644 OpenModelicaArduino/Resources/Images/ModelPlugDocumentation-2.png create mode 100644 OpenModelicaArduino/Resources/Images/ModelPlugDocumentation-3.png create mode 100644 OpenModelicaArduino/Resources/Images/ModelPlugLog-nomarkers.png create mode 100644 OpenModelicaArduino/Resources/Images/ModelPlugLog-withmarkers.png create mode 100644 OpenModelicaArduino/Resources/Images/PinNumber.png create mode 100644 OpenModelicaArduino/Resources/Images/QuotedSerialPort.png create mode 100644 OpenModelicaArduino/Resources/Images/ReadAnalog.png create mode 100644 OpenModelicaArduino/Resources/Images/SerialPortLocation.png create mode 100644 OpenModelicaArduino/Resources/Images/ServoExample.png create mode 100644 OpenModelicaArduino/Resources/Images/SimpleONOFF.png create mode 100644 OpenModelicaArduino/Resources/Images/StandardFirmata.png create mode 100644 OpenModelicaArduino/Resources/Images/StopTime.png create mode 100644 OpenModelicaArduino/Resources/Images/SynchronizeSetting.png create mode 100644 OpenModelicaArduino/Resources/Images/Thumbs.db create mode 100644 OpenModelicaArduino/Resources/Images/analogInput.png create mode 100644 OpenModelicaArduino/Resources/Images/analogOutput.png create mode 100644 OpenModelicaArduino/Resources/Images/arduino.png create mode 100644 OpenModelicaArduino/Resources/Images/arduinoLeonardo.png create mode 100644 OpenModelicaArduino/Resources/Images/custom.png create mode 100644 OpenModelicaArduino/Resources/Images/digitalInput.png create mode 100644 OpenModelicaArduino/Resources/Images/digitalOutput.png create mode 100644 OpenModelicaArduino/Resources/Images/example1.png create mode 100644 OpenModelicaArduino/Resources/Images/example2.png create mode 100644 OpenModelicaArduino/Resources/Images/features.png create mode 100644 OpenModelicaArduino/Resources/Images/front.png create mode 100644 OpenModelicaArduino/Resources/Images/servo.png create mode 100644 OpenModelicaArduino/Resources/Images/standard.png create mode 100644 OpenModelicaArduino/Resources/Include/modelPlugFirmata.h create mode 100644 OpenModelicaArduino/Resources/Library/linux64/libmodelPlugFirmata.so (limited to 'OpenModelicaArduino/Resources') diff --git a/OpenModelicaArduino/Resources/Images/Blink.png b/OpenModelicaArduino/Resources/Images/Blink.png new file mode 100644 index 0000000..b91cc80 Binary files /dev/null and b/OpenModelicaArduino/Resources/Images/Blink.png differ diff --git a/OpenModelicaArduino/Resources/Images/BlinkingLEDModel.png b/OpenModelicaArduino/Resources/Images/BlinkingLEDModel.png new file mode 100644 index 0000000..90c28f5 Binary files /dev/null and b/OpenModelicaArduino/Resources/Images/BlinkingLEDModel.png differ diff --git a/OpenModelicaArduino/Resources/Images/CustomExample.png b/OpenModelicaArduino/Resources/Images/CustomExample.png new file mode 100644 index 0000000..1abb907 Binary files /dev/null and b/OpenModelicaArduino/Resources/Images/CustomExample.png differ diff --git a/OpenModelicaArduino/Resources/Images/DefaultSynchronize.png b/OpenModelicaArduino/Resources/Images/DefaultSynchronize.png new file mode 100644 index 0000000..b1192c1 Binary files /dev/null and b/OpenModelicaArduino/Resources/Images/DefaultSynchronize.png differ diff --git a/OpenModelicaArduino/Resources/Images/Dimming.png b/OpenModelicaArduino/Resources/Images/Dimming.png new file mode 100644 index 0000000..52ef935 Binary files /dev/null and b/OpenModelicaArduino/Resources/Images/Dimming.png differ diff --git a/OpenModelicaArduino/Resources/Images/FirmataLocation.png b/OpenModelicaArduino/Resources/Images/FirmataLocation.png new file mode 100644 index 0000000..e10a08f Binary files /dev/null and b/OpenModelicaArduino/Resources/Images/FirmataLocation.png differ diff --git a/OpenModelicaArduino/Resources/Images/Interval.png b/OpenModelicaArduino/Resources/Images/Interval.png new file mode 100644 index 0000000..849f8f4 Binary files /dev/null and b/OpenModelicaArduino/Resources/Images/Interval.png differ diff --git a/OpenModelicaArduino/Resources/Images/ModelPlugDocumentation-1.png b/OpenModelicaArduino/Resources/Images/ModelPlugDocumentation-1.png new file mode 100644 index 0000000..fcd3938 Binary files /dev/null and b/OpenModelicaArduino/Resources/Images/ModelPlugDocumentation-1.png differ diff --git a/OpenModelicaArduino/Resources/Images/ModelPlugDocumentation-2.png b/OpenModelicaArduino/Resources/Images/ModelPlugDocumentation-2.png new file mode 100644 index 0000000..4c23aa2 Binary files /dev/null and b/OpenModelicaArduino/Resources/Images/ModelPlugDocumentation-2.png differ diff --git a/OpenModelicaArduino/Resources/Images/ModelPlugDocumentation-3.png b/OpenModelicaArduino/Resources/Images/ModelPlugDocumentation-3.png new file mode 100644 index 0000000..073a73f Binary files /dev/null and b/OpenModelicaArduino/Resources/Images/ModelPlugDocumentation-3.png differ diff --git a/OpenModelicaArduino/Resources/Images/ModelPlugLog-nomarkers.png b/OpenModelicaArduino/Resources/Images/ModelPlugLog-nomarkers.png new file mode 100644 index 0000000..c719a11 Binary files /dev/null and b/OpenModelicaArduino/Resources/Images/ModelPlugLog-nomarkers.png differ diff --git a/OpenModelicaArduino/Resources/Images/ModelPlugLog-withmarkers.png b/OpenModelicaArduino/Resources/Images/ModelPlugLog-withmarkers.png new file mode 100644 index 0000000..40ab6da Binary files /dev/null and b/OpenModelicaArduino/Resources/Images/ModelPlugLog-withmarkers.png differ diff --git a/OpenModelicaArduino/Resources/Images/PinNumber.png b/OpenModelicaArduino/Resources/Images/PinNumber.png new file mode 100644 index 0000000..e45324f Binary files /dev/null and b/OpenModelicaArduino/Resources/Images/PinNumber.png differ diff --git a/OpenModelicaArduino/Resources/Images/QuotedSerialPort.png b/OpenModelicaArduino/Resources/Images/QuotedSerialPort.png new file mode 100644 index 0000000..cf0c4c3 Binary files /dev/null and b/OpenModelicaArduino/Resources/Images/QuotedSerialPort.png differ diff --git a/OpenModelicaArduino/Resources/Images/ReadAnalog.png b/OpenModelicaArduino/Resources/Images/ReadAnalog.png new file mode 100644 index 0000000..ad56ad7 Binary files /dev/null and b/OpenModelicaArduino/Resources/Images/ReadAnalog.png differ diff --git a/OpenModelicaArduino/Resources/Images/SerialPortLocation.png b/OpenModelicaArduino/Resources/Images/SerialPortLocation.png new file mode 100644 index 0000000..f999f7e Binary files /dev/null and b/OpenModelicaArduino/Resources/Images/SerialPortLocation.png differ diff --git a/OpenModelicaArduino/Resources/Images/ServoExample.png b/OpenModelicaArduino/Resources/Images/ServoExample.png new file mode 100644 index 0000000..643f646 Binary files /dev/null and b/OpenModelicaArduino/Resources/Images/ServoExample.png differ diff --git a/OpenModelicaArduino/Resources/Images/SimpleONOFF.png b/OpenModelicaArduino/Resources/Images/SimpleONOFF.png new file mode 100644 index 0000000..3bc1c5e Binary files /dev/null and b/OpenModelicaArduino/Resources/Images/SimpleONOFF.png differ diff --git a/OpenModelicaArduino/Resources/Images/StandardFirmata.png b/OpenModelicaArduino/Resources/Images/StandardFirmata.png new file mode 100644 index 0000000..292b82c Binary files /dev/null and b/OpenModelicaArduino/Resources/Images/StandardFirmata.png differ diff --git a/OpenModelicaArduino/Resources/Images/StopTime.png b/OpenModelicaArduino/Resources/Images/StopTime.png new file mode 100644 index 0000000..1ad1767 Binary files /dev/null and b/OpenModelicaArduino/Resources/Images/StopTime.png differ diff --git a/OpenModelicaArduino/Resources/Images/SynchronizeSetting.png b/OpenModelicaArduino/Resources/Images/SynchronizeSetting.png new file mode 100644 index 0000000..41a2924 Binary files /dev/null and b/OpenModelicaArduino/Resources/Images/SynchronizeSetting.png differ diff --git a/OpenModelicaArduino/Resources/Images/Thumbs.db b/OpenModelicaArduino/Resources/Images/Thumbs.db new file mode 100644 index 0000000..fd49c68 Binary files /dev/null and b/OpenModelicaArduino/Resources/Images/Thumbs.db differ diff --git a/OpenModelicaArduino/Resources/Images/analogInput.png b/OpenModelicaArduino/Resources/Images/analogInput.png new file mode 100644 index 0000000..c4f5284 Binary files /dev/null and b/OpenModelicaArduino/Resources/Images/analogInput.png differ diff --git a/OpenModelicaArduino/Resources/Images/analogOutput.png b/OpenModelicaArduino/Resources/Images/analogOutput.png new file mode 100644 index 0000000..525fbca Binary files /dev/null and b/OpenModelicaArduino/Resources/Images/analogOutput.png differ diff --git a/OpenModelicaArduino/Resources/Images/arduino.png b/OpenModelicaArduino/Resources/Images/arduino.png new file mode 100644 index 0000000..e285285 Binary files /dev/null and b/OpenModelicaArduino/Resources/Images/arduino.png differ diff --git a/OpenModelicaArduino/Resources/Images/arduinoLeonardo.png b/OpenModelicaArduino/Resources/Images/arduinoLeonardo.png new file mode 100644 index 0000000..faa3aec Binary files /dev/null and b/OpenModelicaArduino/Resources/Images/arduinoLeonardo.png differ diff --git a/OpenModelicaArduino/Resources/Images/custom.png b/OpenModelicaArduino/Resources/Images/custom.png new file mode 100644 index 0000000..8a7ed5b Binary files /dev/null and b/OpenModelicaArduino/Resources/Images/custom.png differ diff --git a/OpenModelicaArduino/Resources/Images/digitalInput.png b/OpenModelicaArduino/Resources/Images/digitalInput.png new file mode 100644 index 0000000..1038625 Binary files /dev/null and b/OpenModelicaArduino/Resources/Images/digitalInput.png differ diff --git a/OpenModelicaArduino/Resources/Images/digitalOutput.png b/OpenModelicaArduino/Resources/Images/digitalOutput.png new file mode 100644 index 0000000..b6c5946 Binary files /dev/null and b/OpenModelicaArduino/Resources/Images/digitalOutput.png differ diff --git a/OpenModelicaArduino/Resources/Images/example1.png b/OpenModelicaArduino/Resources/Images/example1.png new file mode 100644 index 0000000..67297b1 Binary files /dev/null and b/OpenModelicaArduino/Resources/Images/example1.png differ diff --git a/OpenModelicaArduino/Resources/Images/example2.png b/OpenModelicaArduino/Resources/Images/example2.png new file mode 100644 index 0000000..544afef Binary files /dev/null and b/OpenModelicaArduino/Resources/Images/example2.png differ diff --git a/OpenModelicaArduino/Resources/Images/features.png b/OpenModelicaArduino/Resources/Images/features.png new file mode 100644 index 0000000..b2ca1e0 Binary files /dev/null and b/OpenModelicaArduino/Resources/Images/features.png differ diff --git a/OpenModelicaArduino/Resources/Images/front.png b/OpenModelicaArduino/Resources/Images/front.png new file mode 100644 index 0000000..63d5c31 Binary files /dev/null and b/OpenModelicaArduino/Resources/Images/front.png differ diff --git a/OpenModelicaArduino/Resources/Images/servo.png b/OpenModelicaArduino/Resources/Images/servo.png new file mode 100644 index 0000000..4ec4cfb Binary files /dev/null and b/OpenModelicaArduino/Resources/Images/servo.png differ diff --git a/OpenModelicaArduino/Resources/Images/standard.png b/OpenModelicaArduino/Resources/Images/standard.png new file mode 100644 index 0000000..229067e Binary files /dev/null and b/OpenModelicaArduino/Resources/Images/standard.png differ diff --git a/OpenModelicaArduino/Resources/Include/modelPlugFirmata.h b/OpenModelicaArduino/Resources/Include/modelPlugFirmata.h new file mode 100644 index 0000000..e5007db --- /dev/null +++ b/OpenModelicaArduino/Resources/Include/modelPlugFirmata.h @@ -0,0 +1,32 @@ +#ifndef MODELPLUG_H +#define MODELPLUG_H + +typedef unsigned char bool; + +#if defined(_MSC_VER) + // Microsoft VC++ + #define EXPORT __declspec(dllexport) +#else + // GCC + #define EXPORT __attribute__((visibility("default"))) +#endif +#ifdef _cplusplus +extern "C" { +#endif + +EXPORT void* boardConstructor(char* port,bool showCapabilitites,int samplingMs,int baudRate,bool dtr); +EXPORT void boardDestructor(void* object); + +EXPORT void updateBoard(int id); +EXPORT int getBoardId(void* object); + + +EXPORT double readAnalogPin (int pin, double min, double max, double init, int id); +EXPORT int readDigitalPin (int pin, int init, int id); +EXPORT void writeAnalogPin (int pin, int id,double value); +EXPORT void writeDigitalPin(int pin, int id,int value); +EXPORT void writeServoPin (int pin, int id,double value, int min, int max); +#ifdef _cplusplus +} +#endif +#endif diff --git a/OpenModelicaArduino/Resources/Library/linux64/libmodelPlugFirmata.so b/OpenModelicaArduino/Resources/Library/linux64/libmodelPlugFirmata.so new file mode 100644 index 0000000..f4cd733 Binary files /dev/null and b/OpenModelicaArduino/Resources/Library/linux64/libmodelPlugFirmata.so differ -- cgit