Basic speaker testing on a STM32L053R8 board. Based on other examples and improved using commands sent from PC over serial-USB (t=Tone, s=Sweep, p=Police, h=Song, space=Exit). A small 8-Ohm speaker directly plugged on GND/PA_0 (PWM out) makes a low but clearly audible sound.

Dependencies:   mbed

History

fixed default tip

2015-01-09, by ffxx68 [Fri, 09 Jan 2015 18:00:42 +0000] rev 1

fixed


improved using serial commands

2015-01-09, by ffxx68 [Fri, 09 Jan 2015 17:46:14 +0000] rev 0

improved using serial commands