@@ -76,7 +76,12 @@ void Adafruit_ST7735::writecommand(uint8_t c) {
76
76
#ifdef SPI_HAS_TRANSACTION
77
77
if (hwSPI) SPI.beginTransaction (spisettings);
78
78
#endif
79
+
80
+ #ifdef __ARDUINO_ARC__
81
+ digitalWrite (_rs, LOW);
82
+ #else
79
83
*rsport &= ~rspinmask;
84
+ #endif
80
85
*csport &= ~cspinmask;
81
86
82
87
// Serial.print("C ");
@@ -93,7 +98,12 @@ void Adafruit_ST7735::writedata(uint8_t c) {
93
98
#ifdef SPI_HAS_TRANSACTION
94
99
if (hwSPI) SPI.beginTransaction (spisettings);
95
100
#endif
101
+
102
+ #ifdef __ARDUINO_ARC__
103
+ digitalWrite (_rs, HIGH);
104
+ #else
96
105
*rsport |= rspinmask;
106
+ #endif
97
107
*csport &= ~cspinmask;
98
108
99
109
// Serial.print("D ");
@@ -432,7 +442,12 @@ void Adafruit_ST7735::pushColor(uint16_t color) {
432
442
#ifdef SPI_HAS_TRANSACTION
433
443
if (hwSPI) SPI.beginTransaction (spisettings);
434
444
#endif
445
+
446
+ #ifdef __ARDUINO_ARC__
447
+ digitalWrite (_rs, HIGH);
448
+ #else
435
449
*rsport |= rspinmask;
450
+ #endif
436
451
*csport &= ~cspinmask;
437
452
438
453
if (tabcolor == INITR_BLACKTAB) color = swapcolor (color);
@@ -454,7 +469,12 @@ void Adafruit_ST7735::drawPixel(int16_t x, int16_t y, uint16_t color) {
454
469
#ifdef SPI_HAS_TRANSACTION
455
470
if (hwSPI) SPI.beginTransaction (spisettings);
456
471
#endif
472
+
473
+ #ifdef __ARDUINO_ARC__
474
+ digitalWrite (_rs, HIGH);
475
+ #else
457
476
*rsport |= rspinmask;
477
+ #endif
458
478
*csport &= ~cspinmask;
459
479
460
480
if (tabcolor == INITR_BLACKTAB) color = swapcolor (color);
@@ -483,7 +503,12 @@ void Adafruit_ST7735::drawFastVLine(int16_t x, int16_t y, int16_t h,
483
503
#ifdef SPI_HAS_TRANSACTION
484
504
if (hwSPI) SPI.beginTransaction (spisettings);
485
505
#endif
506
+
507
+ #ifdef __ARDUINO_ARC__
508
+ digitalWrite (_rs, HIGH);
509
+ #else
486
510
*rsport |= rspinmask;
511
+ #endif
487
512
*csport &= ~cspinmask;
488
513
while (h--) {
489
514
spiwrite (hi);
@@ -510,7 +535,12 @@ void Adafruit_ST7735::drawFastHLine(int16_t x, int16_t y, int16_t w,
510
535
#ifdef SPI_HAS_TRANSACTION
511
536
if (hwSPI) SPI.beginTransaction (spisettings);
512
537
#endif
538
+
539
+ #ifdef __ARDUINO_ARC__
540
+ digitalWrite (_rs, HIGH);
541
+ #else
513
542
*rsport |= rspinmask;
543
+ #endif
514
544
*csport &= ~cspinmask;
515
545
while (w--) {
516
546
spiwrite (hi);
@@ -547,7 +577,12 @@ void Adafruit_ST7735::fillRect(int16_t x, int16_t y, int16_t w, int16_t h,
547
577
#ifdef SPI_HAS_TRANSACTION
548
578
if (hwSPI) SPI.beginTransaction (spisettings);
549
579
#endif
580
+
581
+ #ifdef __ARDUINO_ARC__
582
+ digitalWrite (_rs, HIGH);
583
+ #else
550
584
*rsport |= rspinmask;
585
+ #endif
551
586
*csport &= ~cspinmask;
552
587
for (y=h; y>0 ; y--) {
553
588
for (x=w; x>0 ; x--) {
0 commit comments