MCPcopy Create free account
hub / github.com/OpenStickCommunity/GP2040-CE / latch

Method latch

lib/SNESpad/SNESpad.cpp:248–267  ·  view source on GitHub ↗

latch to start read

Source from the content-addressed store, hash-verified

246
247// latch to start read
248void 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
269uint32_t SNESpad::read()
270{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected