summaryrefslogtreecommitdiff
path: root/OpenModelicaArduino/Resources/Include/modelPlugFirmata.h
diff options
context:
space:
mode:
Diffstat (limited to 'OpenModelicaArduino/Resources/Include/modelPlugFirmata.h')
-rwxr-xr-x[-rw-r--r--]OpenModelicaArduino/Resources/Include/modelPlugFirmata.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenModelicaArduino/Resources/Include/modelPlugFirmata.h b/OpenModelicaArduino/Resources/Include/modelPlugFirmata.h
index e5007db..8fd513b 100644..100755
--- a/OpenModelicaArduino/Resources/Include/modelPlugFirmata.h
+++ b/OpenModelicaArduino/Resources/Include/modelPlugFirmata.h
@@ -10,6 +10,7 @@ typedef unsigned char bool;
// GCC
#define EXPORT __attribute__((visibility("default")))
#endif
+
#ifdef _cplusplus
extern "C" {
#endif
@@ -21,7 +22,7 @@ EXPORT void updateBoard(int id);
EXPORT int getBoardId(void* object);
-EXPORT double readAnalogPin (int pin, double min, double max, double init, int id);
+EXPORT double readAnalogPin (int pin, double min, double max, double init, int id, int adcResolution);
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);