drivers: ssd1306: Fix dts read
Modified to read dts information. Signed-off-by: Kwon Tae-young <tykwon@m2i.co.kr>
This commit is contained in:
parent
c478b5bb6e
commit
ac7751d23a
1 changed files with 2 additions and 2 deletions
|
@ -17,13 +17,13 @@ LOG_MODULE_REGISTER(ssd1306);
|
||||||
#include "ssd1306_regs.h"
|
#include "ssd1306_regs.h"
|
||||||
#include <display/cfb.h>
|
#include <display/cfb.h>
|
||||||
|
|
||||||
#if DT_SOLOMON_SSD1306FB_0_PANEL_SEGMENT_REMAP == 1
|
#if DT_SOLOMON_SSD1306FB_0_SEGMENT_REMAP == 1
|
||||||
#define SSD1306_PANEL_SEGMENT_REMAP true
|
#define SSD1306_PANEL_SEGMENT_REMAP true
|
||||||
#else
|
#else
|
||||||
#define SSD1306_PANEL_SEGMENT_REMAP false
|
#define SSD1306_PANEL_SEGMENT_REMAP false
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if DT_SOLOMON_SSD1306FB_0_PANEL_COM_INVDIR == 1
|
#if DT_SOLOMON_SSD1306FB_0_COM_INVDIR == 1
|
||||||
#define SSD1306_PANEL_COM_INVDIR true
|
#define SSD1306_PANEL_COM_INVDIR true
|
||||||
#else
|
#else
|
||||||
#define SSD1306_PANEL_COM_INVDIR false
|
#define SSD1306_PANEL_COM_INVDIR false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue