Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e38e1c2

Browse files
committedFeb 18, 2023
changed screen rotation
1 parent d227cfd commit e38e1c2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed
 

‎components/ble/gatt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ uint16_t battery_status_handle;
8181
//infos about the manufacturer, model, firmware, ... for the device information service
8282
static const char *manuf_name = "SimLinkModule";
8383
static const char *model_num = "P-1.0";
84-
static const char *firmware_rev = "1.0";
85-
static const char *software_rev = "1.0";
84+
static const char *firmware_rev = "1.01";
85+
static const char *software_rev = "1.01";
8686

8787
static const uint8_t hidInfo[HID_INFORMATION_LEN] = {
8888
0x01, 0x01, // bcdHID (USB HID version) --> Version 1.01

‎components/ssd1306/ssd1306.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ void ssd1306_init(){
8787
i2c_master_write_byte(cmd, 0x00, true);
8888
//set the RAM display start line to 0
8989
i2c_master_write_byte(cmd, SSD1306_CMD_SET_DISPLAY_START_LINE, true);
90-
//mirror the x-axis. alternative = SSD1306_CMD_SET_SEGMENT_REMAP_0
91-
i2c_master_write_byte(cmd, SSD1306_CMD_SET_SEGMENT_REMAP_1, true);
92-
//mirror the y-axis. alternative = SSD1306_CMD_SET_COM_SCAN_MODE_0
93-
i2c_master_write_byte(cmd, SSD1306_CMD_SET_COM_SCAN_MODE_1, true);
90+
//mirror the x-axis. alternative = SSD1306_CMD_SET_SEGMENT_REMAP_1
91+
i2c_master_write_byte(cmd, SSD1306_CMD_SET_SEGMENT_REMAP_0, true);
92+
//mirror the y-axis. alternative = SSD1306_CMD_SET_COM_SCAN_MODE_1
93+
i2c_master_write_byte(cmd, SSD1306_CMD_SET_COM_SCAN_MODE_0, true);
9494
//set the COM PinMap to fit 32 lines
9595
i2c_master_write_byte(cmd, SSD1306_CMD_SET_COM_PIN_MAP, true);
9696
i2c_master_write_byte(cmd, 0x02, true);

0 commit comments

Comments
 (0)
Please sign in to comment.