latch to start read
| 246 | |
| 247 | // latch to start read |
| 248 | void SNESpad::latch() |
| 249 | { |
| 250 | #ifdef ARDUINO |
| 251 | digitalWrite(latchPin,HIGH); |
| 252 | delayMicroseconds(12); |
| 253 | |
| 254 | speed(); |
| 255 | |
| 256 | digitalWrite(latchPin,LOW); |
| 257 | delayMicroseconds(6); |
| 258 | #else |
| 259 | gpio_put(latchPin,1); |
| 260 | busy_wait_us(12); |
| 261 | |
| 262 | speed(); // check/set mouse speed |
| 263 | |
| 264 | gpio_put(latchPin,0); |
| 265 | busy_wait_us(6); |
| 266 | #endif |
| 267 | } |
| 268 | |
| 269 | uint32_t SNESpad::read() |
| 270 | { |
nothing calls this directly
no outgoing calls
no test coverage detected