Quote:
Originally Posted by 2526
The project did build but as soon as I added pwm01 = p1_y; It would not build as shown below.
Code:
pwm01 = p1_y;
// example code to test your gyro and encoder(s)
long Encoder_Count;
static unsigned int i = 0;
static unsigned int j = 0;
int temp_gyro_rate;
long temp_gyro_angle;
int temp_gyro_bias;
|
In C, you have to put your code after all variable declarations. If you move pwm01 = p1_y; to the end of this block, it will compile.