Mindstorms 3rd Party ROBOTC Drivers RobotC
[Home] [Download] [Submit a bug/suggestion] [ROBOTC Forums] [Blog] [Support this project]
Defines | Functions | Variables

lego-energymeter.h File Reference

RobotC Energy Meter Driver. More...

#include "common.h"

Go to the source code of this file.

Defines

#define LEGOEM_I2C_ADDR   0x04
#define LEGOEM_I2C_REG   0x0A
#define LEGOEM_I2C_SIZE   14

Functions

bool LEGOEMreadData (tSensors link, float &voltageIn, float &currentIn, float &voltageOut, float &currentOut, int &joule, float &wattIn, float &wattOut)

Variables

tByteArray LEGOEM_I2CRequest
tByteArray LEGOEM_I2CReply

Detailed Description

RobotC Energy Meter Driver.

lego-energymeter.h provides an API for the Lego Energy Meter.

Changelog:

Credits :

License: You may use this code as you wish, provided you give credit where its due.

THIS CODE WILL ONLY WORK WITH ROBOTC VERSION 3.59 AND HIGHER.

Author:
Xander Soldaat (mightor@gmail.com)
Date:
22 August 2010
Version:
0.1

Definition in file lego-energymeter.h.