code for running median filter in arduino/c++ dialect on a realtime input signal.
Note the code uses the textgraph() library to plot an ascii bar graph next to the numerical values. Include this library or comment out the lines that reference it: 21,26,60
https://github.com/ninetreesdesign/textgraph_arduino_library