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
00001 #include "mbed.h" 00002 #include "Defines.h" 00003 #define RED 0x01 00004 #define GREEN 0x02 00005 #define BLUE 0x04 00006 SPISlave *spi; 00007 I2CSlave *i2c; 00008 DigitalIn *Mode; 00009 BusIn *Address; 00010 00011 00012 00013 00014 #define MotorMode 0x04 00015 #define MotorState 0x0e 00016 #define Who_am_I 0x2 00017 #define MotorPWM 0x10 00018 #define MotorPWM2 0xf 00019 #define MoterRevolutionL 0x11 00020 #define MoterRevolutionH 0x12 00021 #define MoterPulseL 0x13 00022 #define MoterPulseH 0x14 00023 #define MoterSpeedL 0x15 00024 #define MoterSpeedH 0x16 00025 #define Automatic 0x0 00026 #define MotorP 0x30 00027 #define MotorI 0x31 00028 #define MotorD 0x32 00029 #define FinishAuto 0x00 00030 #define TargetSpeed 0x23 00031 #define TargetAngle2 0x22 00032 #define TargetAngle 0x21 00033 #define TargetSpeed2 0x24 00034 #define PulsePerRev 0x18 00035 #define PulsePerRev2 0x19 00036 #define PulsePerRevolutionL 0x25 00037 #define PulsePerRevolutionH 0x26 00038 #define PulsePerSec 0x27 00039 #define PulsePerSec2 0x28 00040 #define PulsePerAngle 0x20 00041 #define RotateMode 0x17 00042 00043 00044
Generated on Thu Jul 14 2022 23:50:31 by
 1.7.2 
    