Zigduino-1.0 icon indicating copy to clipboard operation
Zigduino-1.0 copied to clipboard

some bug about pins_arduino.h

Open wasdpkj opened this issue 9 years ago • 2 comments

这里有一些bug,会导致digitalRead()函数不正常: const uint16_t PROGMEM port_to_input_PGM[] = { NOT_A_PIN, NOT_A_PIN, NOT_A_PIN, (uint16_t)&PINC, (uint16_t)&PIND, (uint16_t)&PINE, (uint16_t)&PINF, (uint16_t)&PING, NOT_A_PIN, NOT_A_PIN, NOT_A_PIN, NOT_A_PIN, NOT_A_PIN, };

应该改为: const uint16_t PROGMEM port_to_input_PGM[] = { NOT_A_PIN, NOT_A_PIN, (uint16_t)&PINB, NOT_A_PIN, (uint16_t)&PIND, (uint16_t)&PINE, (uint16_t)&PINF, (uint16_t)&PING, NOT_A_PIN, NOT_A_PIN, NOT_A_PIN, NOT_A_PIN, NOT_A_PIN, };

wasdpkj avatar May 02 '15 07:05 wasdpkj

Any chance you can translate the text into English? I can't read anything else. :(

logos-electromechanical avatar May 14 '15 02:05 logos-electromechanical

This might be fixed by #2 , since it changes the pins_arduino.h file, which was missing a closing bracket.

MidasLamb avatar Jul 18 '17 18:07 MidasLamb