XBee Firmware Library  1.6.0
Capacitive Board (I2C)
void mpr121_default_config (void)
 Init mpr121. More...
 
ssize_t mpr121_write (uint8_t regaddr, uint8_t data)
 Write a byte in the selected address. More...
 
ssize_t mpr121_read (uint8_t regaddr)
 Reads a byte from selected address. More...
 

Detailed Description

A 12 keys keyboard can be controlled with I2C protocol

XBee keyboard MPR121 (I2C)

This API contains some functions for control a capacitive display with I2C protocol with a XBee programmable module. This display is based on MPR121 driver.

Function Documentation

void mpr121_default_config ( void  )

Init mpr121.

Returns
nothing
ssize_t mpr121_read ( uint8_t  regaddr)

Reads a byte from selected address.

Parameters
regaddr- direction for read a byte
Returns
Returns the error code on error or the value read from the selected register
ssize_t mpr121_write ( uint8_t  regaddr,
uint8_t  data 
)

Write a byte in the selected address.

Parameters
regaddr- address to write
data- data to write on selected address
Returns
nothing