Skip to main content
added 12 characters in body
Source Link
user38861
user38861

In the if statement:

if (pitch <=90 && pitch => 15 && button_state =(HIGH))

if (pitch <=90 && pitch => 15 && button_state =(HIGH))

you assign a new value to button_state, which is illegal.

This should read if (pitch <=90 && pitch => 15 && button_state == HIGH):

if (pitch <=90 && pitch => 15 && button_state == HIGH)

In the if statement:

if (pitch <=90 && pitch => 15 && button_state =(HIGH))

you assign a new value to button_state, which is illegal.

This should read if (pitch <=90 && pitch => 15 && button_state == HIGH)

In the if statement:

if (pitch <=90 && pitch => 15 && button_state =(HIGH))

you assign a new value to button_state, which is illegal.

This should read:

if (pitch <=90 && pitch => 15 && button_state == HIGH)
Source Link
user38861
user38861

In the if statement:

if (pitch <=90 && pitch => 15 && button_state =(HIGH))

you assign a new value to button_state, which is illegal.

This should read if (pitch <=90 && pitch => 15 && button_state == HIGH)