I am a programming novice. I am trying to write a program that will display the gyroscope readings. I have tried different cables and different gyroscopes to no avail. The display always reads ‘0’. Since I have switched the components, the problem is in my code. If some one can spare the time to tell me what I am doing wrong it would be appreciated.
Here is my code:
#pragma config(Sensor, in1, gyro, sensorGyro)
Angle = SensorValue(sensorGyro);
bLCDBacklight = true;