1 #ifndef _ADAFRUIT_IS31FL3731_H_
2 #define _ADAFRUIT_IS31Fl3731_H_
6 #include <Adafruit_GFX.h>
8 #define ISSI_ADDR_DEFAULT 0x74
10 #define ISSI_REG_CONFIG 0x00
11 #define ISSI_REG_CONFIG_PICTUREMODE 0x00
12 #define ISSI_REG_CONFIG_AUTOPLAYMODE 0x08
13 #define ISSI_REG_CONFIG_AUDIOPLAYMODE 0x18
15 #define ISSI_CONF_PICTUREMODE 0x00
16 #define ISSI_CONF_AUTOFRAMEMODE 0x04
17 #define ISSI_CONF_AUDIOMODE 0x08
19 #define ISSI_REG_PICTUREFRAME 0x01
21 #define ISSI_REG_SHUTDOWN 0x0A
22 #define ISSI_REG_AUDIOSYNC 0x06
24 #define ISSI_COMMANDREGISTER 0xFD
25 #define ISSI_BANK_FUNCTIONREG 0x0B // helpfully called 'page nine'
31 boolean begin(uint8_t addr = ISSI_ADDR_DEFAULT);
32 void drawPixel(int16_t x, int16_t y, uint16_t color);
35 void setLEDPWM(uint8_t lednum, uint8_t pwm, uint8_t bank = 0);
36 void audioSync(
boolean sync);
37 void setFrame(uint8_t b);
38 void displayFrame(uint8_t frame);
41 void selectBank(uint8_t bank);
42 void writeRegister8(uint8_t bank, uint8_t reg, uint8_t data);
43 uint8_t readRegister8(uint8_t bank, uint8_t reg);
44 uint8_t _i2caddr, _frame;
50 void drawPixel(int16_t x, int16_t y, uint16_t color);
Definition: Adafruit_IS31FL3731.h:28
Definition: Adafruit_GFX.h:12
Definition: Adafruit_IS31FL3731.h:47