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.
Fork of MyLib by
Diff: Nunchuck/Nunchuck.h
- Revision:
- 3:e7a900958f54
- Parent:
- 0:a919993ff50f
- Child:
- 5:69e9c81e9490
--- a/Nunchuck/Nunchuck.h Thu May 11 07:10:17 2017 +0000
+++ b/Nunchuck/Nunchuck.h Thu May 11 07:31:39 2017 +0000
@@ -4,9 +4,9 @@
#include "mbed.h"
-#define ANALOGDATA 1 //1 : analog 0 : degital
-#define DEADZONE 6 //analog stick's deadzone
-#define ADDR 0xA4 // 0x52 << 1
+#define NUNCHUCK_ANALOGDATA 1 //1 : analog 0 : degital
+#define NUNCHUCK_DEADZONE 6 //analog stick's deadzone
+#define NUNCHUCK_ADDR 0xA4 // 0x52 << 1
class Nunchuck : I2C
{
@@ -15,6 +15,7 @@
Nunchuck(PinName SDA, PinName SCL);
int8_t analogx();
int8_t analogy();
+ double analograd();
int accx();
int accy();
int accz ();
