summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-10-10 19:36:57 +0200
committerDaniel Friesel <derf@finalrewind.org>2021-10-10 19:36:57 +0200
commitd29c615741006cce3c49f64b4ba23534534e5526 (patch)
treeee31280ea95fdfc16a5529e5c17024bd0afe147f
parent8bf5a6743489441a0ffb6060a78b3c34ad56cff7 (diff)
sharp96, ssd1306: Describe hardware in driver header
-rw-r--r--include/driver/sharp96.h3
-rw-r--r--include/driver/ssd1306.h5
-rw-r--r--src/driver/sharp96.cc3
-rw-r--r--src/driver/ssd1306.cc3
4 files changed, 13 insertions, 1 deletions
diff --git a/include/driver/sharp96.h b/include/driver/sharp96.h
index 1106df1..aaac40a 100644
--- a/include/driver/sharp96.h
+++ b/include/driver/sharp96.h
@@ -2,6 +2,9 @@
* Copyright 2020 Daniel Friesel
*
* SPDX-License-Identifier: BSD-2-Clause
+ *
+ * Driver for Sharp LS013B4DN04 transflective LCD, also available as
+ * "430BOOST-SHARP96" addon for the MSP430 LaunchPad series.
*/
#ifndef SHARP96_H
#define SHARP96_H
diff --git a/include/driver/ssd1306.h b/include/driver/ssd1306.h
index 1c2ff1a..37cee81 100644
--- a/include/driver/ssd1306.h
+++ b/include/driver/ssd1306.h
@@ -2,6 +2,9 @@
* Copyright 2021 Daniel Friesel
*
* SPDX-License-Identifier: BSD-2-Clause
+ *
+ * Driver for Solomon Systech SSD1306 OLED controller. Tested with
+ * 128x64 and 128x32 Displays.
*/
#ifndef SSD1306_H
#define SSD1306_H
@@ -121,7 +124,7 @@ class SSD1306 {
SSD1306_SET_VCOM_DESEL, 0x30,
// start with medium contrast
- SSD1306_SET_CONTRAST, 0x7f,
+ SSD1306_SET_CONTRAST, 0x80,
// display content == RAM content
SSD1306_SET_ENTIRE_ON,
diff --git a/src/driver/sharp96.cc b/src/driver/sharp96.cc
index 92f32fa..29cfa49 100644
--- a/src/driver/sharp96.cc
+++ b/src/driver/sharp96.cc
@@ -2,6 +2,9 @@
* Copyright 2020 Daniel Friesel
*
* SPDX-License-Identifier: BSD-2-Clause
+ *
+ * Driver for Sharp LS013B4DN04 transflective LCD, also available as
+ * "430BOOST-SHARP96" addon for the MSP430 LaunchPad series.
*/
#include "driver/sharp96.h"
#include "driver/spi.h"
diff --git a/src/driver/ssd1306.cc b/src/driver/ssd1306.cc
index 4ad47ec..e1c299e 100644
--- a/src/driver/ssd1306.cc
+++ b/src/driver/ssd1306.cc
@@ -2,6 +2,9 @@
* Copyright 2021 Daniel Friesel
*
* SPDX-License-Identifier: BSD-2-Clause
+ *
+ * Driver for Solomon Systech SSD1306 OLED controller. Tested with
+ * 128x64 and 128x32 Displays.
*/
#include "driver/ssd1306.h"
#if defined(MULTIPASS_ARCH_HAS_I2C) && !defined(CONFIG_driver_softi2c)