Include cleanup and style tweaks
This commit is contained in:
parent
0e03a321e4
commit
6132a05fd9
@ -567,7 +567,7 @@ extern const struct _mp_obj_module_t ustack_module;
|
|||||||
ERRNO_MODULE \
|
ERRNO_MODULE \
|
||||||
FREQUENCYIO_MODULE \
|
FREQUENCYIO_MODULE \
|
||||||
GAMEPAD_MODULE \
|
GAMEPAD_MODULE \
|
||||||
GAMEPADSHIFT_MODULE \
|
GAMEPADSHIFT_MODULE \
|
||||||
I2CSLAVE_MODULE \
|
I2CSLAVE_MODULE \
|
||||||
JSON_MODULE \
|
JSON_MODULE \
|
||||||
MATH_MODULE \
|
MATH_MODULE \
|
||||||
|
@ -23,17 +23,16 @@
|
|||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
#include "shared-bindings/gamepad/GamePad.h"
|
||||||
|
|
||||||
#include "py/obj.h"
|
#include "py/obj.h"
|
||||||
#include "py/runtime.h"
|
#include "py/runtime.h"
|
||||||
#include "py/mphal.h"
|
#include "py/mphal.h"
|
||||||
#include "py/gc.h"
|
#include "py/gc.h"
|
||||||
#include "py/mpstate.h"
|
#include "py/mpstate.h"
|
||||||
#include "shared-module/gamepad/__init__.h"
|
#include "shared-bindings/gamepad/__init__.h"
|
||||||
#include "shared-module/gamepad/GamePad.h"
|
|
||||||
#include "shared-bindings/digitalio/DigitalInOut.h"
|
#include "shared-bindings/digitalio/DigitalInOut.h"
|
||||||
#include "supervisor/shared/translate.h"
|
#include "supervisor/shared/translate.h"
|
||||||
#include "GamePad.h"
|
|
||||||
#include "__init__.h"
|
|
||||||
|
|
||||||
|
|
||||||
//| .. currentmodule:: gamepad
|
//| .. currentmodule:: gamepad
|
||||||
|
@ -28,10 +28,8 @@
|
|||||||
#include "py/mphal.h"
|
#include "py/mphal.h"
|
||||||
#include "py/gc.h"
|
#include "py/gc.h"
|
||||||
#include "py/mpstate.h"
|
#include "py/mpstate.h"
|
||||||
#include "shared-bindings/gamepad/__init__.h"
|
|
||||||
#include "shared-bindings/gamepadshift/GamePadShift.h"
|
#include "shared-bindings/gamepadshift/GamePadShift.h"
|
||||||
#include "shared-bindings/gamepadshift/__init__.h"
|
#include "shared-bindings/gamepadshift/__init__.h"
|
||||||
#include "shared-module/gamepadshift/GamePadShift.h"
|
|
||||||
#include "supervisor/shared/translate.h"
|
#include "supervisor/shared/translate.h"
|
||||||
|
|
||||||
//| .. currentmodule:: gamepadshift
|
//| .. currentmodule:: gamepadshift
|
||||||
|
@ -34,9 +34,9 @@
|
|||||||
typedef struct {
|
typedef struct {
|
||||||
mp_obj_base_t base;
|
mp_obj_base_t base;
|
||||||
digitalio_digitalinout_obj_t* pins[8];
|
digitalio_digitalinout_obj_t* pins[8];
|
||||||
|
volatile uint8_t last;
|
||||||
volatile uint8_t pressed;
|
volatile uint8_t pressed;
|
||||||
uint8_t pulls;
|
uint8_t pulls;
|
||||||
volatile uint8_t last;
|
|
||||||
} gamepad_obj_t;
|
} gamepad_obj_t;
|
||||||
|
|
||||||
#endif // MICROPY_INCLUDED_GAMEPAD_GAMEPAD_H
|
#endif // MICROPY_INCLUDED_GAMEPAD_GAMEPAD_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user