Repository navigation
Commit faea95b
committed
Follow the IOExpander_Base pull API of M5Unified 0.2.21
M5Unified 0.2.21 replaced IOExpander_Base::setPullMode(pin, bool) and
enablePull(pin, bool) with setPullMode(pin, gpio_pull_t), so the library no
longer compiled against it.
Select the pull-up setup form from M5UNIFIED_VERSION_* so the library builds
against both 0.2.20 and 0.2.21; the register state (pull-up selected and
enabled) is the same in both forms.1 parent 373a816 commit faea95b
1 file changed
Lines changed: 15 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
9 | 22 | | |
10 | 23 | | |
11 | 24 | | |
| |||
64 | 77 | | |
65 | 78 | | |
66 | 79 | | |
67 | | - | |
68 | | - | |
| 80 | + | |
69 | 81 | | |
70 | 82 | | |
71 | 83 | | |
72 | | - | |
73 | | - | |
| 84 | + | |
74 | 85 | | |
75 | 86 | | |
76 | 87 | | |
| |||
0 commit comments