Skip to content

Commit

Permalink
changed screen rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiankuffer committed Feb 18, 2023
1 parent d227cfd commit e38e1c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions components/ble/gatt.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ uint16_t battery_status_handle;
//infos about the manufacturer, model, firmware, ... for the device information service
static const char *manuf_name = "SimLinkModule";
static const char *model_num = "P-1.0";
static const char *firmware_rev = "1.0";
static const char *software_rev = "1.0";
static const char *firmware_rev = "1.01";
static const char *software_rev = "1.01";

static const uint8_t hidInfo[HID_INFORMATION_LEN] = {
0x01, 0x01, // bcdHID (USB HID version) --> Version 1.01
Expand Down
8 changes: 4 additions & 4 deletions components/ssd1306/ssd1306.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ void ssd1306_init(){
i2c_master_write_byte(cmd, 0x00, true);
//set the RAM display start line to 0
i2c_master_write_byte(cmd, SSD1306_CMD_SET_DISPLAY_START_LINE, true);
//mirror the x-axis. alternative = SSD1306_CMD_SET_SEGMENT_REMAP_0
i2c_master_write_byte(cmd, SSD1306_CMD_SET_SEGMENT_REMAP_1, true);
//mirror the y-axis. alternative = SSD1306_CMD_SET_COM_SCAN_MODE_0
i2c_master_write_byte(cmd, SSD1306_CMD_SET_COM_SCAN_MODE_1, true);
//mirror the x-axis. alternative = SSD1306_CMD_SET_SEGMENT_REMAP_1
i2c_master_write_byte(cmd, SSD1306_CMD_SET_SEGMENT_REMAP_0, true);
//mirror the y-axis. alternative = SSD1306_CMD_SET_COM_SCAN_MODE_1
i2c_master_write_byte(cmd, SSD1306_CMD_SET_COM_SCAN_MODE_0, true);
//set the COM PinMap to fit 32 lines
i2c_master_write_byte(cmd, SSD1306_CMD_SET_COM_PIN_MAP, true);
i2c_master_write_byte(cmd, 0x02, true);
Expand Down

0 comments on commit e38e1c2

Please sign in to comment.