mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-25 20:02:37 +03:00
Update core_esp8266_wiring_digital.c
Ugh, I don't know how that happened.
This commit is contained in:
parent
c77f11906c
commit
d0137574d0
@ -77,11 +77,13 @@ extern void __pinMode(uint8_t pin, uint8_t mode) {
|
||||
}
|
||||
|
||||
extern void ICACHE_RAM_ATTR __digitalWrite(uint8_t pin, uint8_t val) {
|
||||
if (pin == 16) {
|
||||
if(val == LOW) {
|
||||
GP16O &= ~1;
|
||||
} else {
|
||||
GP16O |= 1;
|
||||
}
|
||||
} else if ((pin >= 0) && (pin <= 15)) {
|
||||
if(val == LOW) {
|
||||
GPOC = digitalPinToBitMask(pin);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user