We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec4ca2e commit 121a75eCopy full SHA for 121a75e
src/wiring_digital.c
@@ -15,18 +15,19 @@ inline ioreg_p pin_to_port(uint8_t pin)
15
16
inline ioreg_p pin_to_ddr(uint8_t pin)
17
{
18
+ // DDR address is 1 less than PORT address
19
return pin_to_port(pin) - 1;
20
}
21
22
inline ioreg_p pin_to_pinreg(uint8_t pin)
23
24
+ // PIN address is 2 less than PORT address
25
return pin_to_port(pin) - 2;
26
27
28
inline uint8_t pin_to_bit(uint8_t pin)
29
30
return digital_pin_to_bit_mask_PGM[pin];
- //return ((const __flash uint8_t*) digital_pin_to_bit_mask_PGM)[pin];
31
32
33
void pinMode(uint8_t pin, uint8_t mode)
0 commit comments