You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This modification will reduce the above mentioned delay between consecutive 8-bit transfers to ~0.8us(!).
As to my understanding of the library's design I think that this behaviour is unintended and, additonally, it is really painful because it makes a huge difference in screen build-up: It's the difference between slow top-to-down build-up and an instant one.
Here is the code I used now to reproduce the issue on an ItsyBitsy M4. Just provide rgb data in splash.h and you will see the difference with the line commented out as described above while PCHCTRL and BAUD are configured identically in both cases:
#define OLED_CS_PIN A5
#define OLED_DC_PIN A4
#define OLED_RST_PIN A3
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1331.h>
Adafruit_SSD1331 *oled;
#include "splash.h"
uint16_t OLED_Background_Color = 0x0000;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
SPI.begin();
oled = new Adafruit_SSD1331(&SPI, OLED_CS_PIN, OLED_DC_PIN, OLED_RST_PIN);
oled->begin(24000000);
sercom1.setBaudrateSPI(0);
oled->fillScreen(OLED_Background_Color);
oled->drawRGBBitmap(0, 0, (const uint16_t *)image_data_splash_rgb, 96, 64);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.print("PCHCTRL: ");
Serial.println(GCLK->PCHCTRL[SERCOM1_GCLK_ID_CORE].reg);
Serial.print("BAUDREG: ");
Serial.println(SERCOM1->SPI.BAUD.reg);
delay(1000);
}
Actually, I do not understand this behaviour, as the mentioned line should not make a difference. Nevetheless, it does.
Arduino board: Grand Central M4 Express
Arduino IDE version (found in Arduino -> About Arduino menu): 1.8.19
List the steps to reproduce the problem below (if possible attach a sketch or
copy the sketch code in too):
This modification will reduce the above mentioned delay between consecutive 8-bit transfers to ~0.8us(!).
As to my understanding of the library's design I think that this behaviour is unintended and, additonally, it is really painful because it makes a huge difference in screen build-up: It's the difference between slow top-to-down build-up and an instant one.
P.S. When I had not yet tracked down things to this point, I started a question here: https://forums.adafruit.com/viewtopic.php?t=194182. Nevertheless, I think this issue is appropriate, here.
The text was updated successfully, but these errors were encountered: