{"id":15646035,"url":"https://github.com/nok/myo-processing","last_synced_at":"2026-03-07T19:31:24.680Z","repository":{"id":22866419,"uuid":"26214182","full_name":"nok/myo-processing","owner":"nok","description":"Contributed library to use multiple Myo's in Processing.","archived":false,"fork":false,"pushed_at":"2016-10-14T23:42:48.000Z","size":37593,"stargazers_count":50,"open_issues_count":2,"forks_count":14,"subscribers_count":15,"default_branch":"master","last_synced_at":"2026-01-14T01:16:26.888Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/nok/myo-processing","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nok.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-05T10:14:40.000Z","updated_at":"2025-04-29T16:32:52.000Z","dependencies_parsed_at":"2022-08-21T04:40:12.461Z","dependency_job_id":null,"html_url":"https://github.com/nok/myo-processing","commit_stats":null,"previous_names":["voidplus/myo-processing"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/nok/myo-processing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nok%2Fmyo-processing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nok%2Fmyo-processing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nok%2Fmyo-processing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nok%2Fmyo-processing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nok","download_url":"https://codeload.github.com/nok/myo-processing/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nok%2Fmyo-processing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30227786,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T19:01:10.287Z","status":"ssl_error","status_checked_at":"2026-03-07T18:59:58.103Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T12:11:05.107Z","updated_at":"2026-03-07T19:31:24.646Z","avatar_url":"https://github.com/nok.png","language":"Java","funding_links":[],"categories":["Libraries"],"sub_categories":["Contributions"],"readme":"[![Join the chat at https://gitter.im/nok/myo-processing](https://badges.gitter.im/nok/myo-processing.svg)](https://gitter.im/nok/myo-processing?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/nok/myo-processing/master/LICENSE)\n\n---\n\n![Myo for Processing](reference/github_cover.png)\n\n===\n\nContributed library to use the [Myo](https://www.thalmic.com) in [Processing](http://processing.org/).\n\n\n## Table of Contents\n\n- [About](#about)\n- [Download](#download)\n- [Installation](#installation)\n- [Dependencies](#dependencies)\n- [Tested](#tested)\n- [Examples](#examples)\n- [Usage](#usage)\n- [Questions?](#questions)\n- [License](#license)\n\n\n## About\n\nThe [Myo](https://www.thalmic.com) armband lets you use the electrical activity in your muscles to wirelessly control your computer, phone, and other favorite digital technologies. With the wave of your hand, it will transform how you interact with your digital world.\n\n\n## Download\n\n- [Myo for Processing v0.9.0.3](download/MyoForProcessing.zip?raw=true)\n\n\n## Installation\n\nUnzip and put the extracted *MyoForProcessing* folder into the libraries directory of your Processing sketches. The References and examples are stored in the *MyoForProcessing* directory. For more help read the [tutorial](http://www.learningprocessing.com/tutorials/libraries/) by [Daniel Shiffman](https://github.com/shiffman).\n\n\n## Dependencies\n\n- [Myo Connect v0.9.0](https://developer.thalmic.com/downloads)\n- [Myo Firmware v1.5.1970](https://developer.thalmic.com/downloads)\n\n\n## Tested\n\nSystem:\n\n- **OSX** (*Mac OS X 10.7 and higher - tested with Mac OS X 10.10 Yosemite*)\n- **Windows** (*not tested yet, but x86 and x64 should work*) (*Windows 7 and 8*)\n\nMyo SDK version:\n\n- **0.9.0**\n\nProcessing version:\n\n- **3.1.1**\n- 3.0.2\n- 3.0a4\n\n\n## Examples\n\n- Application → [Myo_1_Application.pde](examples/Myo_1_Application/Myo_1_Application.pde)\n- [Callbacks of events](#basics) → [Myo_2_Callbacks.pde](examples/Myo_2_Callbacks/Myo_2_Callbacks.pde)\n- EMG data streams → [Myo_3_EMG_Data.pde](examples/Myo_3_EMG_Data/Myo_3_EMG_Data.pde)\n\nHere you see a screenshot of the viewable example [Myo_1_Application.pde](examples/Myo_1_Application/Myo_1_Application.pde):\n\n![First example Myo_1_Application.pde](reference/example_application.png)\n\n\n## Basics\n\n```java\nimport de.voidplus.myo.*;\n\nMyo myo;\n\nvoid setup() {\n  size(800, 400);\n  background(255);\n  // ...\n  \n  myo = new Myo(this);\n  // myo = new Myo(this, true); // enable EMG data\n}\n\nvoid draw() {\n  background(255);\n  // ...\n}\n\n\n// ==========================================================\n// Executable commands:\n\nvoid mousePressed() {\n  if (myo.hasDevices()) {\n    myo.vibrate();\n    myo.requestRssi();\n    myo.requestBatteryLevel();\n  }\n}\n\n\n// ==========================================================\n// Application lifecycle:\n\nvoid myoOnPair(Device myo, long timestamp) {\n  println(\"Sketch: myoOnPair() has been called\"); \n  int deviceId             = myo.getId();\n  int deviceBatteryLevel   = myo.getBatteryLevel();\n  int deviceRssi           = myo.getRssi();\n  String deviceFirmware    = myo.getFirmware();\n}\nvoid myoOnUnpair(Device myo, long timestamp) {\n  println(\"Sketch: myoOnUnpair() has been called\");\n}\n\nvoid myoOnConnect(Device myo, long timestamp) {\n  println(\"Sketch: myoOnConnect() has been called\");\n  int deviceId             = myo.getId();\n  int deviceBatteryLevel   = myo.getBatteryLevel();\n  int deviceRssi           = myo.getRssi();\n  String deviceFirmware    = myo.getFirmware();\n}\nvoid myoOnDisconnect(Device myo, long timestamp) {\n  println(\"Sketch: myoOnDisconnect() has been called\");\n}\n\nvoid myoOnWarmupCompleted(Device myo, long timestamp) {\n  println(\"Sketch: myoOnWarmupCompleted() has been called\");\n}\n\nvoid myoOnArmSync(Device myo, long timestamp, Arm arm) {\n  println(\"Sketch: myoOnArmSync() has been called\");\n\n  switch (arm.getType()) {\n  case LEFT:\n    println(\"Left arm\");\n    break;\n  case RIGHT:\n    println(\"Right arm\");\n    break;\n  default:\n    println(\"Unknown arm\");\n    break;\n  }\n}\n\nvoid myoOnArmUnsync(Device myo, long timestamp) {\n  println(\"Sketch: myoOnArmUnsync()\");\n}\n\nvoid myoOnLock(Device myo, long timestamp) {\n  println(\"Sketch: myoOnLock() has been called\");\n}\n  \nvoid myoOnUnLock(Device myo, long timestamp) {\n  println(\"Sketch: myoOnUnLock() has been called\");\n}\n\n\n// ----------------------------------------------------------\n// Gestures or poses:\n\nvoid myoOnPose(Device myo, long timestamp, Pose pose) {\n  println(\"Sketch: myoOnPose() has been called\");\n  switch (pose.getType()) {\n    case REST:\n      println(\"Pose: REST\");\n      break;\n    case FIST:\n      println(\"Pose: FIST\");\n      break;\n    case FINGERS_SPREAD:\n      println(\"Pose: FINGERS_SPREAD\");\n      break;\n    case DOUBLE_TAP:\n      println(\"Pose: DOUBLE_TAP\");\n      break;\n    case WAVE_IN:\n      println(\"Pose: WAVE_IN\");\n      break;\n    case WAVE_OUT:\n      println(\"Pose: WAVE_OUT\");\n      break;\n  }\n}\n\n\n// ----------------------------------------------------------\n// Additional information:\n\nvoid myoOnRssi(Device myo, long timestamp, int rssi) {\n  println(\"Sketch: myoOnRssi() has been called, rssi: \" + rssi);\n}\n\nvoid myoOnBatteryLevelReceived(Device myo, long timestamp, int batteryLevel) {\n  println(\"Sketch: myoOnBatteryLevel() has been called, batteryLevel: \" + batteryLevel);\n}\n\n\n// ----------------------------------------------------------\n// Data streams:\n\nvoid myoOnOrientationData(Device myo, long timestamp, PVector orientation) {\n  // println(\"Sketch: myoOnOrientationData() has been called\");\n}\n\nvoid myoOnAccelerometerData(Device myo, long timestamp, PVector accelerometer) {\n  // println(\"Sketch: myoOnAccelerometerData() has been called\");\n}\n\nvoid myoOnGyroscopeData(Device myo, long timestamp, PVector gyroscope) {\n  // println(\"Sketch: myoOnGyroscopeData() has been called\");\n}\n\nvoid myoOnEmgData(Device myo, long timestamp, int[] data) {\n  // println(\"Sketch: myoOnEmgData() has been called\");\n}\n\n\n// ==========================================================\n// Alternatively you can use a global callback:\n\nvoid myoOn(Myo.Event event, Device myo, long timestamp) {  \n  switch(event) {\n  case PAIR:\n    // println(\"Sketch: myoOn() of type 'PAIR' has been called\");\n    break;\n  case UNPAIR:\n    // println(\"Sketch: myoOn() of type 'UNPAIR' has been called\");\n    break;\n  case CONNECT:\n    // println(\"Sketch: myoOn() of type 'CONNECT' has been called\");\n    String firmware = myo.getFirmware();\n    int deviceId = myo.getId();\n    break;\n  case DISCONNECT:\n    // println(\"Sketch: myoOn() of type 'DISCONNECT' has been called\");\n    break;\n  case ARM_SYNC:\n    // println(\"Sketch: myoOn() of type 'ARM_SYNC' has been called\");\n    break;\n  case ARM_UNSYNC:\n    // println(\"Sketch: myoOn() of type 'ARM_UNSYNC' has been called\");\n    break;\n  case WARMUP_COMPLETED:\n    // println(\"Sketch: myoOn() of type 'WARMUP_COMPLETED' has been called\");\n    break;\n  case POSE:\n    switch (myo.getPose().getType()) {\n    case FIST:\n      // println(\"Pose: FIST\");\n      break;\n    }\n    // println(\"Sketch: myoOn() of type 'POSE' has been called\");\n    break;\n  case LOCK:\n    // println(\"Sketch: myoOn() of type 'LOCK' has been called\");\n  case UNLOCK:\n    // println(\"Sketch: myoOn() of type 'UNLOCK' has been called\");\n    break;\n  case BATTERY_LEVEL:\n    // println(\"Sketch: myoOn() of type 'BATTERY_LEVEL' has been called\");\n    int batteryLevel = myo.getBatteryLevel();\n    break;\n  case RSSI:\n    // println(\"Sketch: myoOn() of type 'RSSI' has been called\");\n    int rssi = myo.getRssi();\n    break;\n  case ORIENTATION_DATA:\n    // println(\"Sketch: myoOn() of type 'ORIENTATION_DATA' has been called\");\n    PVector orientation = myo.getOrientation();\n    break;\n  case ACCELEROMETER_DATA:\n    // println(\"Sketch: myoOn() of type 'ACCELEROMETER_DATA' has been called\");\n    PVector accelerometer = myo.getAccelerometer();\n    break;\n  case GYROSCOPE_DATA:\n    // println(\"Sketch: myoOn() of type 'GYROSCOPE_DATA' has been called\");\n    PVector gyroscope = myo.getGyroscope();\n    break;\n  case EMG_DATA:\n    // println(\"Sketch: myoOn() of type 'EMG_DATA' has been called\");\n    int[] data = myo.getEmg();\n    break;\n  }\n}\n```\n\n## Verbose logging table\n\nYou can monitor console outputs by enabling the verbose mode and setting a verbose level. In most cases it's helpful for debugging.\n\n```java\nMyo myo = new Myo(this);\nmyo.setVerbose(true);      // Default level: 1\nmyo.setVerboseLevel(2);    // Levels: [1, 2, 3]\n// myo.setVerbose(false);  // Disable logging \n```\n\n| Method                    | Level     |\n| ------------------------- | :-------: |\n| myoOnPair                 | 1         |\n| myoOnUnpair               | 1         |\n| myoOnConnect              | 1         |\n| myoOnDisconnect           | 1         |\n| myoOnWarmupCompleted      | 1         |\n| myoOnArmSync              | 1         |\n| myoOnArmUnsync            | 1         |\n| myoOnPose                 | 2         |\n| myoOnLock                 | 2         |\n| myoOnUnlock               | 2         |\n| myoOnRssi                 | 2         |\n| myoOnBatteryLevel         | 2         |\n| myoOnOrientationData      | 3         |\n| myoOnAccelerometerData    | 3         |\n| myoOnGyroscopeData        | 3         |\n| myoOnEmgData              | 3         |\n\n## Questions?\n\nDon't be shy and feel free to contact me on [Twitter](https://twitter.com/darius_morawiec) or [Gitter](https://gitter.im/nok/myo-processing).\n\n\n## License\n\nThe library is Open Source Software released under the [license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnok%2Fmyo-processing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnok%2Fmyo-processing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnok%2Fmyo-processing/lists"}