Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
MyoWare Class Reference
MyoWare Muscle Sensor. More...
#include <MyoWare.h>
Detailed Description
MyoWare Muscle Sensor.
Example:
#include "mbed.h" *#include "MyoWare.h" *Serial pc(USBTX, USBRX); // tx, rx *float logic = 0.7f; *int steps = 20; *MyoWare ms(p15, logic, steps); *int main() { while(1) { float sig_val = ms.read(); bool onOff = ms.control(); int stepNum = ms.magnitude(); pc.printf("Sig Value: %f\n\r", sig_val); pc.printf("Logic Value: %f\n\r", logic); pc.printf("Digital Value: %d\n\r", onOff); pc.printf("Total Steps: %d\n\r", steps); pc.printf("Step Value Value: %d\n\r", stepNum); pc.printf("\n\r"); wait(2); } *}
Generated on Sun Jul 17 2022 10:00:36 by
 1.7.2
 1.7.2