LCD-Controller
maschinell erzeugt
Im Forum und im Wiki
-
Thread
ILI9341-Ansteuerung ueber SPI - Verstaendnisfrage
// ports aktivieren ( 1 = output) ILI9341_DDR = (1 << ILI9341_CS_N) | (1 << ILI9341_D_C_N) | (1 << ILI9341_SDI) | (1 << ILI9341_SCK) | (1 << ILI9341_BACKLIGHT); ILI9341_PORT = (1 << ILI9341_
_PORT &= ~(1 << ILI9341_D_C_N); ili9341_out( command); } // send data to the display uint8_t ili9341_data( uint8_t data) { ILI9341_PORT |= (1 << ILI9341_D_C_N); ili9341_out( data); return SPDR
-
Thread
ILI9341 langsam Verbesserungsvorschläge?
ILI9341 Datenblatt?
> Das Display > ist aber schon vom Controller ein ILI9341? yep
-
Thread
2.2'TFT ILI9340 und Arduino
Eine Library mit Grafikelementen für das ILI9341: https://github.com/Bodmer/TFT_ILI9341/tree/master/examples Hier ein Uhr mit dem Display: http://www.mikrocontroller.net/topic/406047?goto=4715371#4714393
_t color) { #ifdef DISPLAY_MIRROR_X x=ILI9341_TFTHEIGHT-x-1; #endif if((x < 0) ||(x >= _width) || (y < 0) || (y >= _height)) return; setAddrWindow(x,y,1,1); writePixel(color); } void Adafruit_ILI9341::writeFillRect(int16_t
-
Thread
ILI9341 SPI Pixel auslesen geht teilweise. ID4 auslesen nicht
gpio_write(RPI_BPLUS_GPIO_J8_36, LOW); //CS Low //Set read address ili9341_writeCommand(0x2A); ili9341_writeDataDWord((x << 16) + x); //32-Bit ili9341_writeCommand(0x2B); ili9341_writeDataDWord((y << 16) + y); //32-Bit ili9341_writeCommand(0x2E);
_readRegister(0x04, 1); //ID1 //ili9341_readRegister(0x04, 2); //ID2 Funktioniert nicht! //ili9341_readRegister(0x04, 3); //ID3 ili9341_fillRect(10, 10, 10, 1, RED); ili9341_fillRect(10, 11, 5, 1, GREEN); ili9341_fillRect(
-
Thread
STM32F407 Black und No-Arduino
Endwert wird n i c h t beschrieben (weißer Rahmen). Warum? Hier der init-code: [c]void ili9341_init(void) { LCD_REG = ILI9341_RESET; HAL_Delay(60); LCD_REG = ILI9341_DISPLAY_OFF; LCD_REG = ILI9341_POWERA; LCD_RAM = 0x39; LCD_RAM = 0x2C; LCD_RAM = 0x00; LCD_RAM
= ILI9341_POWER2; LCD_RAM = 0x10; LCD_REG = ILI9341_VCOM1; LCD_RAM = 0x3E; LCD_RAM = 0x28; LCD_REG = ILI9341_VCOM2; LCD_RAM = 0x86; LCD_REG = ILI9341_MAC; LCD_RAM = 0x48;
-
Thread
2 TFT an Arduino-SPI anschließen
CS 7 ILI9341_due tft = ILI9341_due(TFT_CS, TFT_DC, TFT_RST); ILI9341_due tft2 = ILI9341_due(TFT2_CS, TFT_DC, TFT_RST); void setup(void) // Start of setup { Wire.begin(); tft.begin(); tft.setRotation
Du musst hier (ILI9341_due_config.h) auf EXTENDED [c] /* ILI9341_due_config.h - Arduino Due library for interfacing with ILI9341-based TFTs Code: https://github.com/marekburiak/ILI9341_due Documentation: http:/
-
Thread
4DLCD-32QA mit STM32 initialisieren
HX8347 sind ;-)) (scheint aber wohl ähnlich zum ILI9341 zu sein)
. Der Profi findet alles ganz schnell und hat die Lösung. Hauptsache man findet "driver" und "ILI9341", gelle? >> * This is the documentation for Adafruit's ILI9341 driver for the >> * Arduino platform.
-
Thread
littlevGL Graphiclib, benutzt die hier jemand?
(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2) { ILI9341_SendCommand (ILI9341_COLUMN_ADDR); ILI9341_SendData(x1>>8); ILI9341_SendData(x1 & 0xFF); ILI9341_SendData(x2>>8); ILI9341_SendData(x2 & 0xFF); ILI9341_SendCommand (ILI9341_PAGE_ADDR); ILI9341_SendData(y1>>8); ILI9341_SendData(y1 & 0xFF); ILI9341_SendData(y2>>8); ILI9341_SendData(y2 & 0xFF); ILI9341_SendCommand (ILI9341_GRAM); } void ILI9341_SendData(uint16_t data) {