Hi,
When I try to download this Custom node to my Due board, Embrio crashes and I have to restart it. What I do notice is when the #define or the Adafruit_ssd1306syp is placed into the Deceleration it starts this issue. Why is this happening? This is not an easy library to dissect into a Custom node without using libraries.
Libraries from Amazon purchase can be found here:
https://cloud.mail.ru/pu...20FZ1112%20FZ1113%20.rar<EmbrioCopy>
<Version>1.2.9.0</Version>
<Nodes>
<Node>
<UniqueID>b8360265-069b-41f0-a679-9db150a0c984</UniqueID>
<AssemblyType>Embrio.NodeEngine.AgentController.Nodes.AgentControllerCustomArduinoNode</AssemblyType>
<NodeType>Custom Arduino Node</NodeType>
<UserDefinedName></UserDefinedName>
<Description>A node that lets you write any Arduino code to interact with the Arduino hardware. Can be both an input and output.</Description>
<NodeColor>144,183,227,255</NodeColor>
<X>0</X>
<Y>0</Y>
<Width>785</Width>
<IncludeCode>#include <Adafruit_ssd1306syp.h></IncludeCode>
<DeclerationCode>#define SDA_PIN 20
#define SCL_PIN 21
Adafruit_ssd1306syp display(SDA_PIN,SCL_PIN);</DeclerationCode>
<SetupCode>display.initialize();</SetupCode>
<ImageName>arduino.png</ImageName>
<InfoURL></InfoURL>
<CodeDefinitions>
<CodeDefinition>
<UpdateCondition>EveryUpdate</UpdateCondition>
<Code> display.drawLine(0, 0, 127, 63,WHITE);
display.update();
delay(1000);
display.clear();
display.setTextSize(1);
display.setTextColor(WHITE);
display.setCursor(0,0);
display.println(&quot;Hello, world!&quot;);
display.setTextColor(BLACK, WHITE); // &apos;inverted&apos; text
display.println(3.141592);
display.setTextSize(2);
display.setTextColor(WHITE);
display.print(&quot;0x&quot;); display.println(0xDEADBEEF, HEX);
display.update();
display.clear();</Code>
<UniqueID>f8d2718b-bcc6-4bb7-8962-53e7ba48a2b4</UniqueID>
</CodeDefinition>
</CodeDefinitions>
<Inputs></Inputs>
<Outputs></Outputs>
</Node>
</Nodes>
</EmbrioCopy>