46 #include <Adafruit_SSD1306.h>
48 #define PORTAMOB_KEY_1 2
49 #define PORTAMOB_KEY_2 5
50 #define PORTAMOB_KEY_3 8
51 #define PORTAMOB_KEY_4 9
52 #define PORTAMOB_KEY_5 3
53 #define PORTAMOB_KEY_6 6
54 #define PORTAMOB_KEY_7 4
55 #define PORTAMOB_KEY_8 7
56 #define PORTAMOB_KEY_9 10
58 #define PORTAMOB_EEPROM_ADDR 0x50
59 #define PORTAMOB_SCREEN_ADDRESS 0x3C
A class that provides comprehensive functionalities to interact with the PortaMob Shield components.
static void init_i2c()
Initializes the I2C communication.
static Adafruit_SSD1306 portamob_display(void(*on_error)())
Initializes the PortaMob display.
static void init_buttons(void)
Initializes the push buttons on the PortaMob Shield.
static bool is_button_pressed(uint8_t button)
Checks if a specific button is pressed.
static void eeprom_write(uint8_t addr, uint8_t value)
Writes a value to the EEPROM memory.
static bool has_eeprom()
Checks if the EEPROM memory is present.
static uint8_t eeprom_read(uint8_t addr)
Reads a value from the EEPROM memory.