نمایش نتایج: از 1 به 3 از 3

موضوع: راهنمایی در مورد ارور Adafruit_TFTLCD.cpp

  1. #1
    Junior Member
    تاریخ عضویت
    Apr 2017
    نوشته ها
    2

    راهنمایی در مورد ارور Adafruit_TFTLCD.cpp

    In file included from C:\Users\amir\Documents\Arduino\libraries\TFTLCD-Library-master\Adafruit_TFTLCD.cpp:19:0:

    C:\Users\amir\Documents\Arduino\libraries\TFTLCD-Library-master\pin_magic.h:282:33: warning: backslash and newline separated by space

    #define read8inline(result) { \

    ^

    C:\Users\amir\Documents\Arduino\libraries\TFTLCD-Library-master\Adafruit_TFTLCD.cpp:803:0: warning: "read8" redefined

    #define read8(x) x=read8fn()

    ^

    In file included from C:\Users\amir\Documents\Arduino\libraries\TFTLCD-Library-master\Adafruit_TFTLCD.cpp:19:0:

    C:\Users\amir\Documents\Arduino\libraries\TFTLCD-Library-master\pin_magic.h:183:0: note: this is the location of the previous definition

    #define read8 read8inline

    ^

    C:\Users\amir\Documents\Arduino\libraries\TFTLCD-Library-master\Adafruit_TFTLCD.cpp: In member function 'void Adafruit_TFTLCD::begin(uint16_t)':

    C:\Users\amir\Documents\Arduino\libraries\TFTLCD-Library-master\pin_magic.h:401:21: warning: large integer implicitly truncated to unsigned type [-Woverflow]

    hi = (d) >> 8; lo = (d); CD_DATA ; write8(hi); write8(lo); }

    ^

    C:\Users\amir\Documents\Arduino\libraries\TFTLCD-Library-master\pin_magic.h:187:29: note: in expansion of macro 'writeRegister16inline'

    #define writeRegister16 writeRegister16inline

    ^

    C:\Users\amir\Documents\Arduino\libraries\TFTLCD-Library-master\Adafruit_TFTLCD.cpp:283:5: note: in expansion of macro 'writeRegister16'

    writeRegister16(ILI9341_VCOMCONTROL1, 0x2B2B);

    ^

    Sketch uses 14054 bytes (5%) of program storage space. Maximum is 253952 bytes.
    Global variables use 346 bytes (4%) of dynamic memory, leaving 7846 bytes for local variables. Maximum is 8192 bytes.

    سلام لطفا در مورد این ارور راهنمایی کنید . جست و جو کردم و هیچ نتیجه ای نگرفتم.



    بردم arduino mega2560 هست شیلد نمایشگرمم hx8347g هست .

    سورسمم به این صورته :

    #include <hx8347lib.h>
    #include <Adafruit_TFTLCD.h>
    #include <Adafruit_GFX.h>




    // The control pins for the LCD can be assigned to any digital or
    // analog pins...but we'll use the analog pins as this allows us to
    // double up the pins with the touch screen (see the TFT paint example).
    #define LCD_CS A3 // Chip Select goes to Analog 3
    #define LCD_CD A2 // Command/Data goes to Analog 2
    #define LCD_WR A1 // LCD Write goes to Analog 1
    #define LCD_RD A0 // LCD Read goes to Analog 0
    #define LCD_RESET A4 // Can alternately just connect to Arduino's reset pin

    // When using the BREAKOUT BOARD only, use these 8 data lines to the LCD:
    // For the Arduino Uno, Duemilanove, Diecimila, etc.:
    // D0 connects to digital pin 8
    // D1 connects to digital pin 9
    // D2 connects to digital pin 2
    // D3 connects to digital pin 3
    // D4 connects to digital pin 4
    // D5 connects to digital pin 5
    // D6 connects to digital pin 6
    // D7 connects to digital pin 7



    // Assign human-readable names to some common 16-bit color values:
    #define BLACK 0x0000
    #define BLUE 0x001F
    #define RED 0xF800
    #define GREEN 0x07E0
    #define CYAN 0x07FF
    #define MAGENTA 0xF81F
    #define YELLOW 0xFFE0
    #define WHITE 0xFFFF

    Adafruit_TFTLCD tft(A3, A2, A1, A0, A4);
    void setup(void)
    {

    Serial.begin(9600);
    tft.reset();
    tft.begin(0x7575); //
    }

    void loop(void)
    {
    for(uint8_t rotation=0; rotation<4; rotation++)
    {
    tft.setRotation(rotation);
    testText();
    delay(5000);
    }
    }

    unsigned long testFillScreen()
    {
    unsigned long start = micros();
    tft.fillScreen(BLACK);
    tft.fillScreen(RED);
    tft.fillScreen(GREEN);
    tft.fillScreen(BLUE);
    tft.fillScreen(BLACK);
    }

    unsigned long testText()
    {
    tft.fillScreen(RED);
    tft.setCursor(0, 0);
    tft.setTextColor(WHITE); tft.setTextSize(1);
    //tft.println("Hello World!");
    tft.setTextColor(YELLOW); tft.setTextSize(2);
    tft.println(1234.56);
    tft.setTextColor(WHITE); tft.setTextSize(2.5);
    tft.println("dr.mohammad");
    tft.println();
    tft.setTextColor(GREEN);
    tft.setTextSize(4);
    tft.println("himax hx8347g");
    tft.setTextSize(2);
    tft.println("this is a test");
    tft.setTextSize(1);
    tft.println("this is a test");
    tft.println("himax hx8347g");
    tft.println("Hello World");
    }

  2. #2
    Member
    تاریخ عضویت
    May 2016
    نوشته ها
    45
    نقل قول نوشته اصلی توسط mohammad@er نمایش پست ها
    In file included from C:\Users\amir\Documents\Arduino\libraries\TFTLCD-Library-master\Adafruit_TFTLCD.cpp:19:0:

    C:\Users\amir\Documents\Arduino\libraries\TFTLCD-Library-master\pin_magic.h:282:33: warning: backslash and newline separated by space

    #define read8inline(result) { \

    ^

    C:\Users\amir\Documents\Arduino\libraries\TFTLCD-Library-master\Adafruit_TFTLCD.cpp:803:0: warning: "read8" redefined

    #define read8(x) x=read8fn()

    ^

    In file included from C:\Users\amir\Documents\Arduino\libraries\TFTLCD-Library-master\Adafruit_TFTLCD.cpp:19:0:

    C:\Users\amir\Documents\Arduino\libraries\TFTLCD-Library-master\pin_magic.h:183:0: note: this is the location of the previous definition

    #define read8 read8inline

    ^

    C:\Users\amir\Documents\Arduino\libraries\TFTLCD-Library-master\Adafruit_TFTLCD.cpp: In member function 'void Adafruit_TFTLCD::begin(uint16_t)':

    C:\Users\amir\Documents\Arduino\libraries\TFTLCD-Library-master\pin_magic.h:401:21: warning: large integer implicitly truncated to unsigned type [-Woverflow]

    hi = (d) >> 8; lo = (d); CD_DATA ; write8(hi); write8(lo); }

    ^

    C:\Users\amir\Documents\Arduino\libraries\TFTLCD-Library-master\pin_magic.h:187:29: note: in expansion of macro 'writeRegister16inline'

    #define writeRegister16 writeRegister16inline

    ^

    C:\Users\amir\Documents\Arduino\libraries\TFTLCD-Library-master\Adafruit_TFTLCD.cpp:283:5: note: in expansion of macro 'writeRegister16'

    writeRegister16(ILI9341_VCOMCONTROL1, 0x2B2B);

    ^

    Sketch uses 14054 bytes (5%) of program storage space. Maximum is 253952 bytes.
    Global variables use 346 bytes (4%) of dynamic memory, leaving 7846 bytes for local variables. Maximum is 8192 bytes.

    سلام لطفا در مورد این ارور راهنمایی کنید . جست و جو کردم و هیچ نتیجه ای نگرفتم.



    بردم arduino mega2560 هست شیلد نمایشگرمم hx8347g هست .

    سورسمم به این صورته :
    دوست خوبم درست متوجه نشدم مشکلت چیه؟ چه راهنمایی میخوای دقیقا؟؟ در باره ی برنامه ای که گذاشتی راهنمایی میخوای؟؟

  3. #3
    Member
    تاریخ عضویت
    May 2016
    نوشته ها
    45
    معذرت میخوام من کلمه ارور رو ندیدم تو سوالتون

    تمام کتابخانه هارو اضافه کردین؟

مجوز های ارسال و ویرایش

  • شما نمیتوانید موضوع جدیدی ارسال کنید
  • شما امکان ارسال پاسخ را ندارید
  • شما نمیتوانید فایل پیوست کنید.
  • شما نمیتوانید پست های خود را ویرایش کنید
  •  

SEO by vBSEO