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 \
|
||||
FREQUENCYIO_MODULE \
|
||||
GAMEPAD_MODULE \
|
||||
GAMEPADSHIFT_MODULE \
|
||||
GAMEPADSHIFT_MODULE \
|
||||
I2CSLAVE_MODULE \
|
||||
JSON_MODULE \
|
||||
MATH_MODULE \
|
||||
|
|
|
@ -23,17 +23,16 @@
|
|||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
#include "shared-bindings/gamepad/GamePad.h"
|
||||
|
||||
#include "py/obj.h"
|
||||
#include "py/runtime.h"
|
||||
#include "py/mphal.h"
|
||||
#include "py/gc.h"
|
||||
#include "py/mpstate.h"
|
||||
#include "shared-module/gamepad/__init__.h"
|
||||
#include "shared-module/gamepad/GamePad.h"
|
||||
#include "shared-bindings/gamepad/__init__.h"
|
||||
#include "shared-bindings/digitalio/DigitalInOut.h"
|
||||
#include "supervisor/shared/translate.h"
|
||||
#include "GamePad.h"
|
||||
#include "__init__.h"
|
||||
|
||||
|
||||
//| .. currentmodule:: gamepad
|
||||
|
|
|
@ -28,10 +28,8 @@
|
|||
#include "py/mphal.h"
|
||||
#include "py/gc.h"
|
||||
#include "py/mpstate.h"
|
||||
#include "shared-bindings/gamepad/__init__.h"
|
||||
#include "shared-bindings/gamepadshift/GamePadShift.h"
|
||||
#include "shared-bindings/gamepadshift/__init__.h"
|
||||
#include "shared-module/gamepadshift/GamePadShift.h"
|
||||
#include "supervisor/shared/translate.h"
|
||||
|
||||
//| .. currentmodule:: gamepadshift
|
||||
|
|
|
@ -34,9 +34,9 @@
|
|||
typedef struct {
|
||||
mp_obj_base_t base;
|
||||
digitalio_digitalinout_obj_t* pins[8];
|
||||
volatile uint8_t last;
|
||||
volatile uint8_t pressed;
|
||||
uint8_t pulls;
|
||||
volatile uint8_t last;
|
||||
} gamepad_obj_t;
|
||||
|
||||
#endif // MICROPY_INCLUDED_GAMEPAD_GAMEPAD_H
|
||||
|
|
Loading…
Reference in New Issue