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 2015_denziben_i2c_S by
Registar.h
- Committer:
- kikoaac
- Date:
- 2015-06-19
- Revision:
- 0:5af71b978fb7
- Child:
- 2:897a1cac8d96
- Child:
- 3:1194c29429bf
File content as of revision 0:5af71b978fb7:
#include "mbed.h" #include "Defines.h" #define Red 0x01 #define Green 0x02 #define Blue 0x04 SPISlave *spi; I2CSlave *i2c; DigitalIn *Mode; BusIn *Address; BusOut LED(Red_Pin,Green_Pin,Blue_Pin); #define MotorMode 0x04 #define MotorState 0x0e #define Who_am_I 0x0 #define MotorPWM 0x0f #define MotorPWM2 0x10 #define MoterRevolutionL 0x11 #define MoterRevolutionH 0x12 #define MoterPulseL 0x13 #define MoterPulseH 0x14 #define MoterSpeedL 0x15 #define MoterSpeedH 0x16 #define Automatic 0x0 #define MotorP 0x23 #define MotorI 0x24 #define MotorD 0x25 #define FinishAuto 0x00 #define TargetSpeed 0x00 #define TargetAngle2 0x22 #define TargetAngle 0x21 #define TargetSpeed2 0x00 #define PulsePerRev 0x18 #define PulsePerRev2 0x19 #define RotateMode 0x17