Skip to content

Instantly share code, notes, and snippets.

View hbldh's full-sized avatar

Henrik Blidh hbldh

View GitHub Profile
@hbldh
hbldh / accelerometer_logging.py
Last active April 20, 2018 09:56
Logging in PyMetaWear
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
:mod:`accelerometer_logging`
==================
Created by hbldh <henrik.blidh@nedomkull.com>
Created on 2018-04-20
"""
@hbldh
hbldh / data_collector.py
Last active August 29, 2020 13:33
MetaWear linear acceleration reading example (requires matplotlib for plotting)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
import time
from pymetawear.discover import select_device
from pymetawear.client import MetaWearClient