File tree Expand file tree Collapse file tree 4 files changed +5
-8
lines changed Expand file tree Collapse file tree 4 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -567,7 +567,7 @@ extern const struct _mp_obj_module_t ustack_module;
567
567
ERRNO_MODULE \
568
568
FREQUENCYIO_MODULE \
569
569
GAMEPAD_MODULE \
570
- GAMEPADSHIFT_MODULE \
570
+ GAMEPADSHIFT_MODULE \
571
571
I2CSLAVE_MODULE \
572
572
JSON_MODULE \
573
573
MATH_MODULE \
Original file line number Diff line number Diff line change 23
23
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
24
* THE SOFTWARE.
25
25
*/
26
+ #include "shared-bindings/gamepad/GamePad.h"
27
+
26
28
#include "py/obj.h"
27
29
#include "py/runtime.h"
28
30
#include "py/mphal.h"
29
31
#include "py/gc.h"
30
32
#include "py/mpstate.h"
31
- #include "shared-module/gamepad/__init__.h"
32
- #include "shared-module/gamepad/GamePad.h"
33
+ #include "shared-bindings/gamepad/__init__.h"
33
34
#include "shared-bindings/digitalio/DigitalInOut.h"
34
35
#include "supervisor/shared/translate.h"
35
- #include "GamePad.h"
36
- #include "__init__.h"
37
36
38
37
39
38
//| .. currentmodule:: gamepad
Original file line number Diff line number Diff line change 28
28
#include "py/mphal.h"
29
29
#include "py/gc.h"
30
30
#include "py/mpstate.h"
31
- #include "shared-bindings/gamepad/__init__.h"
32
31
#include "shared-bindings/gamepadshift/GamePadShift.h"
33
32
#include "shared-bindings/gamepadshift/__init__.h"
34
- #include "shared-module/gamepadshift/GamePadShift.h"
35
33
#include "supervisor/shared/translate.h"
36
34
37
35
//| .. currentmodule:: gamepadshift
Original file line number Diff line number Diff line change 34
34
typedef struct {
35
35
mp_obj_base_t base ;
36
36
digitalio_digitalinout_obj_t * pins [8 ];
37
+ volatile uint8_t last ;
37
38
volatile uint8_t pressed ;
38
39
uint8_t pulls ;
39
- volatile uint8_t last ;
40
40
} gamepad_obj_t ;
41
41
42
42
#endif // MICROPY_INCLUDED_GAMEPAD_GAMEPAD_H
You can’t perform that action at this time.
0 commit comments