Good day everyone,
I was wondering if the piezo buzzer can be used in any other Pin other than the Pins.GPIO_PIN_D9?
Thanks

  | ||||||||||||||
3 replies to this topic
#1Posted 23 February 2013 - 08:21 PM Good day everyone,
I was wondering if the piezo buzzer can be used in any other Pin other than the Pins.GPIO_PIN_D9?
Thanks #2Posted 24 February 2013 - 08:30 AM Hi,
D10, D5, D6 are also PWM on the V1's.
Plus D3 & D11 on the v2's.
You could also make short bursts of sound using the SPI - MOSI (D11).
Have fun - Paul #3Posted 24 February 2013 - 07:16 PM
Thanks Paul for your feedback, my bad, I was using D2 instead of D3 in my N+2 because I have read the following specs incorrectly:
digital pins 2-3: UART 2 RX, TX/PWM
And that was causing the board to crash really bad to be point that I had to re-flash it every time I was debugging my app. #4Posted 24 February 2013 - 07:29 PM for testing and such i suggest using a thread.sleep(5*1000); at the beginning _before_ your code, so when you reset it it gives you enough time to just remove the app or deploy a new one before it crashes again.
(and seriously, 5 seconds is not really that long ...) Also tagged with one or more of these keywords: Speaker
0 user(s) are reading this topic0 members, 0 guests, 0 anonymous users | ||||||||||||||
|
||||||||||||||
This webpage is licensed under a Creative Commons Attribution-ShareAlike License. | ||||||||||||||