Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 5:bf6a376e3793, committed 2021-10-28
- Comitter:
- s2001061
- Date:
- Thu Oct 28 12:16:32 2021 +0000
- Parent:
- 4:32f7deade942
- Commit message:
- SerialCtrl_ver.2021;
Changed in this revision
| SerialCtrl.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/SerialCtrl.h Tue Feb 18 08:47:32 2020 +0000
+++ b/SerialCtrl.h Thu Oct 28 12:16:32 2021 +0000
@@ -5,6 +5,8 @@
#define DATA_N 9
enum {LX, LY, RX, RY, L2, R2, B1, B2, SUM};
+
+//B1の中身
#define TRIANGLE 0x01
#define CIRCLE 0x02
#define CROSS 0x04
@@ -14,14 +16,25 @@
#define DOWN 0x40
#define LEFT 0x80
+//B2の中身(コントローラーによって選択)
#define L1 0x01
#define L3 0x02
#define R1 0x04
#define R3 0x08
+//PS3用
+
#define SELECT 0x10
#define START 0x20
#define PS 0x40
+//PS4用
+/*
+#define SHARE 0x10
+#define OPTIONS 0x20
+#define PS 0x40
+#define TOUCHPAD 0x80
+*/
+
class SerialCtrl {
public:
SerialCtrl(Serial*, Timer*);