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

mindsensors-hid.h File Reference

Mindsensors HID Sensor driver. More...

#include "common.h"

Go to the source code of this file.

Defines

#define MSHID_I2C_ADDR   0x04
#define MSHID_CMD   0x41
#define MSHID_KEYBMOD   0x42
#define MSHID_KEYBDATA   0x43
#define MSHID_XMIT   0x54
#define MSHID_ASCII   0x41
#define MSHID_DDATA   0x44
#define MSHID_MOD_NONE   0x00
#define MSHID_MOD_LCTRL   0x01
#define MSHID_MOD_LSHIFT   0x02
#define MSHID_MOD_LALT   0x04
#define MSHID_MOD_LGUI   0x08
#define MSHID_MOD_RCTRL   0x10
#define MSHID_MOD_RSHIFT   0x20
#define MSHID_MOD_RALT   0x40
#define MSHID_MOD_RGUI   0x80

Functions

bool MSHIDsendCommand (tSensors link, byte command, ubyte address=MSHID_I2C_ADDR)
bool MSHIDsendKeyboardData (tSensors link, byte modifier, byte keybdata, ubyte address=MSHID_I2C_ADDR)
bool MSHIDsendString (tSensors link, string data, ubyte address=MSHID_I2C_ADDR)

Variables

tByteArray MSHID_I2CRequest

Detailed Description

Mindsensors HID Sensor driver.

mindsensors-hid.h provides an API for the Mindsensors HID Sensor.

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 (xander_at_botbench.com)
Date:
18 December 2010
Version:
0.2

Definition in file mindsensors-hid.h.