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

Download repository: zip gz

Files at revision 1:7fdec2560f78

Name Size Actions
[up]
main.cpp 2897 Revisions Annotate
mbed.bld 65 Revisions Annotate