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 bertl14 by
Diff: bertl14.cpp
- Revision:
- 3:4326e2654adb
- Parent:
- 2:d9f2452ba88d
- Child:
- 5:066936e2c097
--- a/bertl14.cpp Sun Jan 31 16:44:34 2016 +0000 +++ b/bertl14.cpp Mon Feb 01 10:48:40 2016 +0000 @@ -2,12 +2,12 @@ #include "bertl14.h" //********************************************************************************* // Define Motor Routines -DigitalOut engineLR(P1_0); //IN1, EP10, MG1A => MG1 engine-Pin 2, left_Reverse -DigitalOut engineLF(P1_1); //IN2, EP11, MG1B => MG1 engine-Pin 1, left_Forward -PwmOut engineLEN(p34); //EN1, P34, left_ENABLE -DigitalOut engineRR(P1_4); //IN4, EP13, MG2A => MG2 engine-Pin 2, right_Reverse -DigitalOut engineRF(P1_3); //IN3, EP14, MG2B => MG2 engine-Pin 1, right_Forward -PwmOut engineREN(p36); //EN2, P36, right_ENABLE +DigitalOut engineLR(P1_0); //IN1, EP10, MG1A => MG1 engine-Pin 2, left_Reverse +DigitalOut engineLF(P1_1); //IN2, EP11, MG1B => MG1 engine-Pin 1, left_Forward +PwmOut engineLEN(p34); //EN1, P34, left_ENABLE +DigitalOut engineRR(P1_4); //IN4, EP13, MG2A => MG2 engine-Pin 2, right_Reverse +DigitalOut engineRF(P1_3); //IN3, EP14, MG2B => MG2 engine-Pin 1, right_Forward +PwmOut engineREN(p36); //EN2, P36, right_ENABLE //********************************************************************************** // Define PC9555 Routines I2C pc9555(P0_5, P0_4);// SDA, SCL @@ -28,7 +28,6 @@ data[0] = PC9555_PORT1_DIRCONFIG; data[1] = 0xFF; pc9555.write(PC9555_ADDR_W, data, 2); - } void bertl_PC9555_leds(unsigned char leds) @@ -58,9 +57,6 @@ } // END PC9555 Routines //********************************************************************************** - - - //********************************************************************************** // Begin Motor Routines void bertl_engine(int left, int right)