Everything works fine except track name not display on oled #806
Replies: 1 comment
-
Because I'm not a programming expert. After a few days of confusion. I idly changed the line value from 1 to 2, |
Beta Was this translation helpful? Give feedback.
-
hello again friends, these two days I tried to display the track name on 4 oled. I tried the example in the
MCU-OLED-SSD1306-x2.ino
file. everything went well except the track display did not appear. I use pro mega communication via Serialauto &serial = Serial; SerialMIDI_Interface<decltype(serial)> midi {serial, MIDI_BAUD};
I changed the configuration pin because when I followed the example it didn't work. I changed to
constexpr int8_t OLED_MOSI = 53; constexpr int8_t OLED_CLK = 49; constexpr int8_t OLED_DC = 51; constexpr int8_t OLED_CS_L = 50; constexpr int8_t OLED_CS_R = 48; constexpr int8_t OLED_CS_L2 = 46; constexpr int8_t OLED_CS_R2 = 45; constexpr int8_t OLED_RESET = 52; constexpr int8_t OLED_RESET2 = 47; constexpr int8_t OLED_RESET3 = 44; constexpr int8_t OLED_RESET4 = 43;
and also I am change to Instantiate the displays
Adafruit_SSD1306 ssd1306Display_L (SCREEN_WIDTH, SCREEN_HEIGHT, OLED_MOSI, OLED_CLK, OLED_DC, OLED_RESET, OLED_CS_L);
Adafruit_SSD1306 ssd1306Display_R (SCREEN_WIDTH, SCREEN_HEIGHT, OLED_MOSI, OLED_CLK, OLED_DC, OLED_RESET2 , OLED_CS_R);
Adafruit_SSD1306 ssd1306Display_L2 (SCREEN_WIDTH, SCREEN_HEIGHT, OLED_MOSI, OLED_CLK, OLED_DC, OLED_RESET3, OLED_CS_L2);
Adafruit_SSD1306 ssd1306Display_R2 (SCREEN_WIDTH, SCREEN_HEIGHT, OLED_MOSI, OLED_CLK, OLED_DC, OLED_RESET4 , OLED_CS_R2);
and I writing follow the example but still cant show a track name.
MCU::LCDDisplay lcddisps[] {
// track (1), position (0, 40), font size (1)
{display_L, lcd, 1,1, {0, 40}, 1, WHITE},
{display_L, lcd, 2,1, {64, 40}, 1, WHITE},
{display_R, lcd, 3,1, {0, 40}, 1, WHITE},
{display_R, lcd, 4,1, {64, 40}, 1, WHITE},
{display_L2, lcd, 5,1, {0, 40}, 1, WHITE},
{display_L2, lcd, 6,1, {64, 40}, 1, WHITE},
{display_R2, lcd, 7,1, {0, 40}, 1, WHITE},
{display_R2, lcd, 8,1, {64, 40}, 1, WHITE},
};
Thank you, hopefully friends here can help.
No Name track
Beta Was this translation helpful? Give feedback.
All reactions