Private
Public Access
2
0
Files
mraa/include/grovepi/grovepi.h
Thomas Ingleby 170bdd104f spdx: add spdx tags to most files
Large change that removes the duplicated MIT notice withe a spdx tag

Signed-off-by: Thomas Ingleby <thomas.ingleby@intel.com>
2019-05-23 10:09:12 -07:00

31 lines
613 B
C

/*
* Author: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
* Copyright (c) 2017 Intel Corporation.
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include "i2c.h"
#include "mraa_internal.h"
#define GROVEPI_ADDRESS 0x04
#define GROVEPI_REGISTER 0x01
#define GROVEPI_GPIO_READ 0x01
#define GROVEPI_GPIO_WRITE 0x02
#define GROVEPI_AIO_READ 0x03
#define GROVEPI_PWM 0x04
#define GROVEPI_GPIO_MODE 0x05
#define GROVEPI_FIRMWARE 0x08
mraa_platform_t mraa_grovepi_platform(mraa_board_t* board, const int i2c_bus);
#ifdef __cplusplus
}
#endif