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.
Dependencies: ST7032 QEI PS4Serial
Dependents: 2021Arobo_UMAPYOI 2021Arobo_YUMIPYOI
Diff: cerica2.h
- Revision:
- 1:019a7d4201c2
- Parent:
- 0:a1d2ea7aa5c6
- Child:
- 2:3657788ab5fd
--- a/cerica2.h Fri Sep 07 01:50:16 2018 +0000
+++ b/cerica2.h Sat Sep 15 11:01:43 2018 +0000
@@ -5,6 +5,21 @@
enum WireSel {
FEP01,TweLite
};
+
+#define GPIO0 = PC_9,
+#define GPIO1 = PA_5,
+#define GPIO2 = PA_6,
+#define GPIO3 = PA_7,
+#define GPIO4 = PB_6,
+#define GPIO5 = PC_7,
+#define GPIO6 = PA_8,
+#define GPIO7 = PB_10,
+#define GPIO8 = PB_13,
+#define GPIO9 = PB_14,
+#define GPIO10 = PB_15,
+#define GPIO11 = PB_1,
+#define GPIO12 = PB_2,
+};
class CERICA
{
private:
@@ -16,4 +31,5 @@
PS4Serial PS4;
PERICA perica;
CERICA(WireSel WireSel_);
+ bool motor(char sendChannel,int verocity) {return perica.motor(sendChannel,verocity);}
};
\ No newline at end of file