Adafruit ILI9341 Display Library
Adafruit_FRAM_I2C.h
Go to the documentation of this file.
1 /**************************************************************************/
18 /**************************************************************************/
19 #ifndef _ADAFRUIT_FRAM_I2C_H_
20 #define _ADAFRUIT_FRAM_I2C_H_
21 
22 #include <Adafruit_EEPROM_I2C.h>
23 
24 #define MB85RC_DEFAULT_ADDRESS \
25  (0x50)
26 #define MB85RC_SECONDARY_ADDRESS \
27  (0x7C)
28 
29 
34 public:
35  Adafruit_FRAM_I2C(void);
36 
37  bool begin(uint8_t addr = MB85RC_DEFAULT_ADDRESS, TwoWire *theWire = &Wire);
38  void getDeviceID(uint16_t *manufacturerID, uint16_t *productID);
39 
40 private:
41  Adafruit_I2CDevice *i2c_dev2 = NULL;
42  boolean _framInitialised;
43 };
44 
45 #endif
Class that stores state and functions for interacting with I2C FRAM chips.
Definition: Adafruit_FRAM_I2C.h:33
Class that stores state and functions for interacting with I2C EEPROM chips.
Definition: Adafruit_EEPROM_I2C.h:19
bool begin(uint8_t addr=MB85RC_DEFAULT_ADDRESS, TwoWire *theWire=&Wire)
Sets up the hardware and initializes I2C.
Definition: Adafruit_FRAM_I2C.cpp:53
void getDeviceID(uint16_t *manufacturerID, uint16_t *productID)
Reads the Manufacturer ID and the Product ID frm the IC.
Definition: Adafruit_FRAM_I2C.cpp:94
Adafruit_FRAM_I2C(void)
Definition: Adafruit_FRAM_I2C.cpp:39
#define MB85RC_DEFAULT_ADDRESS
Definition: Adafruit_FRAM_I2C.h:24