Skip to content

Commit 6132a05

Browse files
committed
Include cleanup and style tweaks
1 parent 0e03a32 commit 6132a05

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

py/circuitpy_mpconfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ extern const struct _mp_obj_module_t ustack_module;
567567
ERRNO_MODULE \
568568
FREQUENCYIO_MODULE \
569569
GAMEPAD_MODULE \
570-
GAMEPADSHIFT_MODULE \
570+
GAMEPADSHIFT_MODULE \
571571
I2CSLAVE_MODULE \
572572
JSON_MODULE \
573573
MATH_MODULE \

shared-bindings/gamepad/GamePad.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,16 @@
2323
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2424
* THE SOFTWARE.
2525
*/
26+
#include "shared-bindings/gamepad/GamePad.h"
27+
2628
#include "py/obj.h"
2729
#include "py/runtime.h"
2830
#include "py/mphal.h"
2931
#include "py/gc.h"
3032
#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"
3334
#include "shared-bindings/digitalio/DigitalInOut.h"
3435
#include "supervisor/shared/translate.h"
35-
#include "GamePad.h"
36-
#include "__init__.h"
3736

3837

3938
//| .. currentmodule:: gamepad

shared-bindings/gamepadshift/GamePadShift.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@
2828
#include "py/mphal.h"
2929
#include "py/gc.h"
3030
#include "py/mpstate.h"
31-
#include "shared-bindings/gamepad/__init__.h"
3231
#include "shared-bindings/gamepadshift/GamePadShift.h"
3332
#include "shared-bindings/gamepadshift/__init__.h"
34-
#include "shared-module/gamepadshift/GamePadShift.h"
3533
#include "supervisor/shared/translate.h"
3634

3735
//| .. currentmodule:: gamepadshift

shared-module/gamepad/GamePad.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
typedef struct {
3535
mp_obj_base_t base;
3636
digitalio_digitalinout_obj_t* pins[8];
37+
volatile uint8_t last;
3738
volatile uint8_t pressed;
3839
uint8_t pulls;
39-
volatile uint8_t last;
4040
} gamepad_obj_t;
4141

4242
#endif // MICROPY_INCLUDED_GAMEPAD_GAMEPAD_H

0 commit comments

Comments
 (0)