- Thu May 23, 2019 7:41 pm
#29559
I have an Arduino Leonardo I am using for development on a Windows machine to simulate the Arduino dfrobot-processor built into the LattePanda. I am using the following code to initialize the arduino and configure pin 4 to be used with a relay board.
Anyone have any suggestions on what I am doing wrong or what may be happening?
Code: Select all
When the arduino.digitalWrite(4, Arduino.HIGH) is called, the event procedure ardion_digitalPinUpdated is not called. No matter what I do, I cannot get this event to fire. I need to be able to track the state of the pin changing. arduino = new Arduino(settings.comPort);
arduino.pinMode(4, Arduino.OUTPUT);
arduino.digitalPinUpdated += arduino_digitalPinUpdated;
arduino.wireBegin(200);
arduino.digitalWrite(4, Arduino.HIGH);
Anyone have any suggestions on what I am doing wrong or what may be happening?