Hack to see if original 6-button controller works

This commit is contained in:
MickGyver 2021-05-13 13:00:09 +03:00
parent d66327698c
commit 0bff2fe33d
2 changed files with 2 additions and 1 deletions

View File

@ -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:

View File

@ -62,6 +62,7 @@ void loop() { while(1)
{ {
currentState = controller.getStateMD(); currentState = controller.getStateMD();
sendState(); sendState();
delay(4);
}} }}
void sendState() void sendState()