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.
i2C.h
00001 I2C i2c(p9, p10); //sda, scl 00002 00003 const int addr = 0x50; // define the I2C Address 00004 char bl_F[2], bl_B[2], bl_L[2], bl_R[2]; 00005 00006 void eyetosee(){ 00007 00008 bl_F[1]= 0; 00009 bl_B[1]= 0; 00010 bl_R[1]= 0; 00011 bl_L[1]= 9; 00012 00013 i2c.write(addr+2, bl_L, 2); // Send command string to Motor Left 00014 i2c.write(addr+4, bl_B, 2); // Send command string to Motor Back 00015 i2c.write(addr+6, bl_F, 2); // Send command string to Motor Front 00016 i2c.write(addr+8, bl_R, 2); // Send command string to Motor Right 00017 00018 }
Generated on Sun Jul 17 2022 23:18:49 by
1.7.2