Skip to content

Commit

Permalink
Add definitions for values of the OLED FADE_BLINK register
Browse files Browse the repository at this point in the history
  • Loading branch information
Barabas5532 committed Apr 30, 2021
1 parent c27d942 commit ad46312
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/oled/oled_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

// Advance Graphic Commands
#define FADE_BLINK 0x23
#define ENABLE_FADE 0x20
#define ENABLE_BLINK 0x30

// Charge Pump Commands
#define CHARGE_PUMP 0x8D
Expand Down Expand Up @@ -574,7 +576,7 @@ bool oled_off(void) {

static const uint8_t PROGMEM display_off[] =
#ifdef OLED_DRIVER_DISPLAY_FADE
{I2C_CMD, FADE_BLINK, 0x20 | OLED_DRIVER_DISPLAY_FADE_INTERVAL};
{I2C_CMD, FADE_BLINK, ENABLE_FADE | OLED_DRIVER_DISPLAY_FADE_INTERVAL};
#else
{I2C_CMD, DISPLAY_OFF};
#endif
Expand Down

0 comments on commit ad46312

Please sign in to comment.