ATTinyCore icon indicating copy to clipboard operation
ATTinyCore copied to clipboard

digitalWriteFast is broken on most platforms...

Open WestfW opened this issue 1 year ago • 0 comments

It looks like digitalWriteFast (in Arduino.h) has some cut&paste errors, for example:

    if (val == LOW) {
      *out &= ~mask;                  // 1/1
    } else {                          // 1/1
      *out &= ~mask;                  // 1/1
    }   // and we know which one at compile time, so

This causes it to always set the pin LOW, regardless of arguments. See (by .lst file inspection) on t85 and t84, but it looks like even more are broken.)

WestfW avatar Oct 24 '24 02:10 WestfW