File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -81,8 +81,8 @@ uint16_t battery_status_handle;
8181//infos about the manufacturer, model, firmware, ... for the device information service
8282static const char * manuf_name = "SimLinkModule" ;
8383static 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
8787static const uint8_t hidInfo [HID_INFORMATION_LEN ] = {
8888 0x01 , 0x01 , // bcdHID (USB HID version) --> Version 1.01
Original file line number Diff line number Diff 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);
You can’t perform that action at this time.
0 commit comments