This commit is contained in:
olikraus
2016-08-12 21:46:02 +02:00
parent 7dca10a7ef
commit 2a8564bf47
3 changed files with 19 additions and 10 deletions
@@ -96,10 +96,10 @@ U8G2_SSD1306_128X64_NONAME_1_SW_I2C u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11,
void setup(void) {
/* U8g2 Project: SSD1306 Test Board */
pinMode(10, OUTPUT);
pinMode(9, OUTPUT);
digitalWrite(10, 0);
digitalWrite(9, 0);
//pinMode(10, OUTPUT);
//pinMode(9, OUTPUT);
//digitalWrite(10, 0);
//digitalWrite(9, 0);
/* U8g2 Project: T6963 Test Board */
//pinMode(18, OUTPUT);
+1 -1
View File
@@ -1,5 +1,5 @@
name=U8g2
version=2.2.2
version=2.2.3
author=oliver <olikraus@gmail.com>
maintainer=oliver <olikraus@gmail.com>
sentence=Library for monochrome LCDs and OLEDs. Successor of U8glib.
+14 -5
View File
@@ -148,13 +148,22 @@ static const uint8_t u8x8_d_sed1330_240x128_init_seq[] = {
/* system init has total 8 parameters, so 7 more are here */
U8X8_A(0x087), /* no idea here... WF (topmost bit) is set to one because it is suggested in the datasheet, lowest 3 bits refer to text mode only */
U8X8_A(0x007), /* FY: height of a char+1, does not matter here (hopefully), because we use graphics mode only */
U8X8_A(240/8-1), /* C/R: this could be the number of horizontal bytes - 1 (how knows????) */
U8X8_A(240/8-1+4), /* TC/R: I just take the C/R value and add 4 as suggested in section 9.1.1, but it depends on timing also ... */
U8X8_A(127), /* L/F: Lines per frame - 1, probably this is the height of the display - 1 */
U8X8_A(240/8), /* Low byte of the virtual screen size. Maybe this is the sam as the number of horizontal bytes? */
U8X8_A(240/8-1), /* C/R: this could be the number of horizontal bytes - 1 (Value confirmed with app notes p41) */
U8X8_A(74), /* TC/R: According to app notes fOSC=6Mhz fFF=70Hz --> TC/R = 74d*/
U8X8_A(127), /* L/F: Lines per frame - 1, probably this is the height of the display - 1 (value confirmed with app notes p41)*/
U8X8_A(240/8), /* Low byte of the virtual screen size. (Value confirmed with app notes p41) */
U8X8_A(0), /* High byte of the virtual screen size, see also section 9.1.2 */
U8X8_C(0x044), /* SCROLL: Let us hope that scrolling is disabled by using this command without args */
U8X8_C(0x044), /* SCROLL: Args taken fom app notes p41 */
U8X8_A(0),
U8X8_A(0),
U8X8_A(128),
U8X8_A(0),
U8X8_A(5),
U8X8_A(128),
U8X8_CA(0x05a, 0), /* HDOT SCR: Horizontal dotwise scroll... set to 0 */
U8X8_CA(0x05b, 0x0c), /* OVLAY: 2-layer, all graphics, OR between layer 1 and 2 */
U8X8_DLY(100),