Hi,
Anybody worked with external led blink or turn on /off ?
Because i am facing this issue, Should i make some changes in wiring_digital?
It works well with my own code ,when i set and clear XOR,But in wiring_digital it is always cleared.Someone can clear my doubt.
You need a “pinMode(15, OUTPUT);” somewhere. And it should be “digitalWrite(15, HIGH);”, not PIN_15_OFFSET there. The digitalWrite() maps the value 15 to the appropriate PIN_15_OFFSET itself, which is board-dependent i.e. different for AVR or RISC-V or ARM boards.
Also, as with the built-in LED, you should wire the LED between the pin and 3.3 V or 5 V, not between the pin and GND, or you’ll get reversed sense of HIGH/LOW.