Lauszus / LaunchPadFlightController

TM4C123G based Flight Controller
78 stars 36 forks source link

buzzer.c #15

Closed mtayyip closed 6 years ago

mtayyip commented 6 years ago

Hi, in the buzzer code : GPIOPinTypeGPIOOutput(GPIO_BUZZER_BASE, GPIO_PIN_BUZZER); it's running all the time buzzer.

And this code: GPIOPinWrite(GPIO_BUZZER_BASE, GPIO_PIN_BUZZER, enable ? GPIO_PIN_BUZZER : 0);//enable is false continues to work, does not stop

moisesesc commented 6 years ago

Could be the hardware... Shorted buzzer driver

On Feb 4, 2018 8:07 AM, Muhammet Tayyip Çankaya notifications@github.com wrote:

Hi, in the buzzer code : GPIOPinTypeGPIOOutput(GPIO_BUZZER_BASE, GPIO_PIN_BUZZER); it's running all the time buzzer.

And this code: GPIOPinWrite(GPIO_BUZZER_BASE, GPIO_PIN_BUZZER, enable ? GPIO_PIN_BUZZER : 0);//enable is false continues to work, does not stop

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/Lauszus/LaunchPadFlightController/issues/15, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AA0qHfhMlDMLPutnG8nd9ZTVwRsZwCHBks5tRauHgaJpZM4R4j83.

mtayyip commented 6 years ago

I connected the vcc to 3.3 volts.now it is OK

Lauszus commented 6 years ago

@mtayyip good to hear you got it working :)