Original code is using WRITE from fastio, but original used pinMode to set pin direction and did not use the fastio SET_INPUT or SET_OUTPUT. This caused an issue with the rotary encoder interface to boards based on teensyduino, since for teensyduino pin numbers for fastio and the usual Arduino IO are different.
|
|
||
1133 |
|
1133 |
|
1134 |
|
1134 |
|
1135 |
|
1135 |
|
1136 |
|
|
|
1137 |
|
|
|
|
1136 |
|
|
|
1137 |
|
|
1138 |
|
1138 |
|
1139 |
|
1139 |
|
1140 |
|
1140 |
|
1141 |
|
|
|
|
1141 |
|
|
1142 |
|
1142 |
|
1143 |
|
1143 |
|
1144 |
|
1144 |
|
1145 |
|
|
|
1146 |
|
|
|
1147 |
|
|
|
|
1145 |
|
|
|
1146 |
|
|
|
1147 |
|
|
1148 |
|
1148 |
|
1149 |
|
1149 |
|
1150 |
|
1150 |
|
1151 |
|
1151 |
|
1152 |
|
1152 |
|
1153 |
|
|
|
1154 |
|
|
|
|
1153 |
|
|
|
1154 |
|
|
1155 |
|
1155 |
|
1156 |
|
|
|
1157 |
|
|
|
1158 |
|
|
|
1159 |
|
|
|
|
1156 |
|
|
|
1157 |
|
|
|
1158 |
|
|
|
1159 |
|
|
1160 |
|
1160 |
|
1161 |
|
1161 |
|
1162 |
|
1162 |
|
|
|
||
1168 |
|
1168 |
|
1169 |
|
1169 |
|
1170 |
|
1170 |
|
1171 |
|
|
|
|
1171 |
|
|
1172 |
|
1172 |
|
1173 |
|
1173 |
|
1174 |
|
1174 |
|