File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 6
6
7
7
## [ Unreleased] - ReleaseDate
8
8
9
+ ### Added
10
+
11
+ - [ #183 ] ( https://github.com/jamwaffles/ssd1306/pull/183 ) ` Brightness::custom() ` is now publicly available.
12
+
9
13
### Fixed
10
14
11
15
- [ #177 ] ( https://github.com/jamwaffles/ssd1306/pull/177 ) Fixed a few spelling mistakes.
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ impl Brightness {
39
39
///
40
40
/// `contrast` sets the value used in the `0x81 Set Contrast Control` command and must be
41
41
/// between 0 and 255. See section 10.1.7 of the SSD1306 datasheet for more information.
42
- const fn custom ( precharge : u8 , contrast : u8 ) -> Self {
42
+ pub const fn custom ( precharge : u8 , contrast : u8 ) -> Self {
43
43
debug_assert ! (
44
44
0 < precharge && precharge <= 15 ,
45
45
"Precharge value must be between 1 and 15"
You can’t perform that action at this time.
0 commit comments