File tree Expand file tree Collapse file tree 5 files changed +45
-0
lines changed Expand file tree Collapse file tree 5 files changed +45
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ class ImageAssets {
5
5
static const String blackBoard = 'assets/canvas/black.png' ;
6
6
static const String epaper37Bwr =
7
7
'assets/images/displays/epaper_3.7_bwr.webp' ;
8
+ static const String GDEQ031T10Display =
9
+ 'assets/images/displays/GDEQ031T10_display.png' ;
8
10
static const String epaper37Bw = 'assets/images/displays/epaper_3.7_bw.webp' ;
9
11
static const String customExport = 'assets/images/displays/export_image.webp' ;
10
12
static const String waveshare2_9 = 'assets/images/displays/waveshare_2.9.png' ;
Original file line number Diff line number Diff line change 1
1
import 'package:magicepaperapp/util/epd/display_device.dart' ;
2
+ import 'package:magicepaperapp/util/epd/gdeq031t10.dart' ;
2
3
import 'package:magicepaperapp/util/epd/gdey037z03.dart' ;
3
4
import 'package:magicepaperapp/util/epd/gdey037z03bw.dart' ;
4
5
import 'package:magicepaperapp/util/epd/waveshare_2in9.dart' ;
@@ -18,6 +19,8 @@ class EpdUtils {
18
19
return Gdey037z03BW ();
19
20
case 'waveshare-2.9' :
20
21
return Waveshare2in9 ();
22
+ case 'GDEQ031T10' :
23
+ return GDEQ031T10 ();
21
24
default :
22
25
return Gdey037z03 ();
23
26
}
Original file line number Diff line number Diff line change
1
+ import 'package:flutter/material.dart' ;
2
+ import 'package:magicepaperapp/constants/asset_paths.dart' ;
3
+ import 'package:magicepaperapp/util/epd/driver/uc8253.dart' ;
4
+ import 'package:magicepaperapp/util/image_processing/image_processing.dart' ;
5
+ import 'package:image/image.dart' as img;
6
+ import 'driver/driver.dart' ;
7
+ import 'epd.dart' ;
8
+
9
+ class GDEQ031T10 extends Epd {
10
+ @override
11
+ get width => 320 ;
12
+
13
+ @override
14
+ get height => 240 ;
15
+
16
+ @override
17
+ String get name => 'E-Paper 3.1"' ;
18
+ @override
19
+ String get modelId => 'GDEQ031T10' ;
20
+ @override
21
+ String get imgPath => ImageAssets .GDEQ031T10Display ;
22
+
23
+ @override
24
+ get colors => [Colors .white, Colors .black];
25
+
26
+ @override
27
+ get controller => Uc8253 () as Driver ;
28
+
29
+ @override
30
+ List <img.Image Function (img.Image )> get processingMethods => [
31
+ ImageProcessing .bwFloydSteinbergDither,
32
+ ImageProcessing .bwFalseFloydSteinbergDither,
33
+ ImageProcessing .bwStuckiDither,
34
+ ImageProcessing .bwAtkinsonDither,
35
+ ImageProcessing .bwHalftoneDither,
36
+ ImageProcessing .bwThreshold,
37
+ ];
38
+ }
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import 'package:magicepaperapp/constants/string_constants.dart';
4
4
import 'package:magicepaperapp/provider/getitlocator.dart' ;
5
5
import 'package:magicepaperapp/util/epd/configurable_editor.dart' ;
6
6
import 'package:magicepaperapp/util/epd/display_device.dart' ;
7
+ import 'package:magicepaperapp/util/epd/gdeq031t10.dart' ;
7
8
import 'package:magicepaperapp/util/epd/gdey037z03.dart' ;
8
9
import 'package:magicepaperapp/util/epd/gdey037z03bw.dart' ;
9
10
import 'package:magicepaperapp/util/epd/waveshare_2in9.dart' ;
@@ -26,6 +27,7 @@ class _DisplaySelectionScreenState extends State<DisplaySelectionScreen> {
26
27
Gdey037z03 (),
27
28
Gdey037z03BW (),
28
29
Waveshare2in9 (),
30
+ GDEQ031T10 (),
29
31
ConfigurableEpd (
30
32
width: 400 ,
31
33
height: 300 ,
You can’t perform that action at this time.
0 commit comments