-
Notifications
You must be signed in to change notification settings - Fork 0
/
FluMMA865xI2C.h
32 lines (28 loc) · 1.43 KB
/
FluMMA865xI2C.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// -*- mode: C++; tab-width: 2; c-basic-offset: 2; indent-tabs-mode: nil; coding: utf-8 -*-
// MMA865x Accelerometer Driver Library for Arduino, Version 0.1.0, 2015-11-12
// http://koffein.org/E/FluMMA865x/
// Version numbering follows the http://www.semver.org Semantic Versioning 2.0.0 specification
// This work is based on the efforts of other open source engineers, please see Credits.txt
// Copyright (c) 2015 Herwig Wittmann <lab15@koffein.org>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
#include <Arduino.h>
class FluMMA865xI2C
{
public:
static void writeByte(const uint8_t subAddress, const uint8_t data);
static uint8_t readByte(const uint8_t subAddress);
static void readBytes(const uint8_t subAddress, const uint8_t count, uint8_t * const dest);
};