You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
425 B

5 years ago
  1. #ifndef AT24C32_h
  2. #define AT24C32_h
  3. #include <Arduino.h>
  4. class AT24C32
  5. {
  6. public:
  7. void begin();
  8. uint8_t read(int address);
  9. void write(int address, uint8_t data);
  10. };
  11. // I2C address
  12. #define AT24C32_I2C_ADDRESS 0x57
  13. #define BRIGHTNESS_ADDRESS 0x0A00
  14. #define COLOR_ADDRESS 0x0A01
  15. #define VIEW_STATE_ADDRESS 0x0A02
  16. #define TIME_MODE_ADDRESS 0x0A03
  17. #define TEXT_SIZE_ADDRESS 0x0B00
  18. #define TEXT_ADDRESS 0x0B01
  19. #endif