Skip to content

Commit 1096130

Browse files
committed
add i2c and jdi driver
1 parent cb780e5 commit 1096130

7 files changed

Lines changed: 1198 additions & 0 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
* Copyright 2024 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#pragma once
18+
19+
#define DISPLAY_ORIENTATION_COLUMN_MAJOR_INVERTED 0
20+
#define DISPLAY_ORIENTATION_ROTATED_180 0
21+
#define DISPLAY_ORIENTATION_ROW_MAJOR 0
22+
#define DISPLAY_ORIENTATION_ROW_MAJOR_INVERTED 1
23+
24+
#define PBL_BW 0
25+
#define PBL_COLOR 1
26+
27+
#define PBL_RECT 1
28+
#define PBL_ROUND 0
29+
30+
#define PBL_DISPLAY_WIDTH 200
31+
#define PBL_DISPLAY_HEIGHT 228
32+
33+
#define LEGACY_2X_DISP_COLS 144
34+
#define LEGACY_2X_DISP_ROWS 168
35+
#define LEGACY_3X_DISP_COLS LEGACY_2X_DISP_COLS
36+
#define LEGACY_3X_DISP_ROWS LEGACY_2X_DISP_ROWS
37+
38+
#define DISPLAY_FRAMEBUFFER_BYTES (PBL_DISPLAY_WIDTH * PBL_DISPLAY_HEIGHT)

0 commit comments

Comments
 (0)