Hack to see if original 6-button controller works
This commit is contained in:
parent
d66327698c
commit
0bff2fe33d
|
@ -67,7 +67,7 @@ enum
|
||||||
DB9_PIN9_BIT = 1
|
DB9_PIN9_BIT = 1
|
||||||
};
|
};
|
||||||
|
|
||||||
const byte SC_CYCLE_DELAY = 10; // Delay (µs) between setting the select pin and reading the button pins
|
const byte SC_CYCLE_DELAY = 12; // Delay (µs) between setting the select pin and reading the button pins
|
||||||
|
|
||||||
class SegaController32U4 {
|
class SegaController32U4 {
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -62,6 +62,7 @@ void loop() { while(1)
|
||||||
{
|
{
|
||||||
currentState = controller.getStateMD();
|
currentState = controller.getStateMD();
|
||||||
sendState();
|
sendState();
|
||||||
|
delay(4);
|
||||||
}}
|
}}
|
||||||
|
|
||||||
void sendState()
|
void sendState()
|
||||||
|
|
Loading…
Reference in New Issue