Browse Source

Fix digitalWriteFast

teensy4-core
Andrew Kroll 6 years ago
parent
commit
ca6e66f909
No account linked to committer's email address
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      teensy4/core_pins.h

+ 2
- 1
teensy4/core_pins.h View File

@@ -589,7 +589,8 @@ static inline void digitalWriteFast(uint8_t pin, uint8_t val)
}
}
} else {
*portClearRegister(pin) = digitalPinToBitMask(pin);
if(val) *portSetRegister(pin) = digitalPinToBitMask(pin);
else *portClearRegister(pin) = digitalPinToBitMask(pin);
}
}


Loading…
Cancel
Save