I got stuck (by Attila )
Hello everyone. I'm a beginner, but I'm stuck with a basic problem. Two digital inputs control one output. It's terribly simple. But whichever input is true, the output is immediately true. On the table trying Arduino Uno. Simulated, however, is perfect. What's the problem?
Thank you in advance for your help.
Attila
(no subject) (by Ihor Nehrutsa)
In uno_1.cpp
...
void setupPlc(void) {
...
// Set up I/O pins
pinMode(pin_Ub_Xa, INPUT_PULLUP);
pinMode(pin_Ub_Xb, INPUT_PULLUP);
...
Input pin configured as INPUT_PULLUP.
See
https://github.com/LDmicro/LDmicro/wiki/Pull-up-resistors
You need to change the file