صفحه 3 از 5 نخستنخست 12345 آخرینآخرین
نمایش نتایج: از 21 به 30 از 44
Like Tree12 لایک

موضوع: Glcd یا lcd گرافیکی

  1. #21
    مدیر گروه
    تاریخ عضویت
    Nov 2013
    محل سکونت
    ایران
    نوشته ها
    4,064
    نقل قول نوشته اصلی توسط poggije نمایش پست ها
    سلام...
    دقیقا 3.3 اینچه. پشتشم هیچی ننوشته فق طیه برچسب داره که روش نوشته ساخت چین Made in China

    فایل پیوست 2327

    متاسفانه روی چیپ درایورش رو کاور کرده
    نمیشه خوندش

    ممم
    لینک خریدتون رو بدید ببینم میتونم مشابهش رو پیدا کنم
    لایک کردن

  2. #22
    Member
    تاریخ عضویت
    Jun 2016
    محل سکونت
    ایران عزیر
    نوشته ها
    74
    نقل قول نوشته اصلی توسط magmagmary نمایش پست ها
    متاسفانه روی چیپ درایورش رو کاور کرده
    نمیشه خوندش

    ممم
    لینک خریدتون رو بدید ببینم میتونم مشابهش رو پیدا کنم

    بفرمایین:
    https://daneshjookit.com/%D9%86%D9%8...acter-128.html

  3. #23
    مدیر گروه
    تاریخ عضویت
    Nov 2013
    محل سکونت
    ایران
    نوشته ها
    4,064
    اینو تست کن:
    G6EJD - Computer Topics


    برای سرچ هم کلیدواژه ها اینه:LCD 12864A arduino

  4. #24
    Member
    تاریخ عضویت
    May 2016
    نوشته ها
    86
    ببخشید من کدی که از این تاپیک گرفتم (خود کد بدون اپلودکردن ) اررور میده هم لوگو هم exampleخود کتابخونه ...چیکار میتونم بکنم ؟

  5. #25
    مدیر گروه
    تاریخ عضویت
    Nov 2013
    محل سکونت
    ایران
    نوشته ها
    4,064
    متن ارور رو بزارید؟

  6. #26
    Member
    تاریخ عضویت
    May 2016
    نوشته ها
    86
    این بخشی از متن ارور خود اگزمپل glcd
    هستش



    C:\Users\farin\Documents\Arduino\libraries\Arduino Menu-master/core_pins.h: At global scope:

    C:\Users\farin\Documents\Arduino\libraries\Arduino Menu-master/core_pins.h:2077:74: error: 'uint32_t millis()' was declared 'extern' and later 'static' [-fpermissive]

    static inline uint32_t millis(void) __attribute__((always_inline, unused));

    ^

    In file included from sketch\ks0108example.pde.cpp:1:0:

    C:\Users\farin\Desktop\arduino-nightly\hardware\arduino\avr\cores\arduino/Arduino.h:132:15: error: previous declaration of 'long unsigned int millis()' [-fpermissive]

    unsigned long millis(void);

    ^

    In file included from C:\Users\farin\Documents\Arduino\libraries\Arduino Menu-master/wiring.h:9:0,

    from C:\Users\farin\Documents\Arduino\libraries\Menu/WProgram.h:10,

    from C:\Users\farin\Documents\Arduino\libraries\glcd/include/Streaming.h:24,

    from C:\Users\farin\Documents\Arduino\libraries\glcd/include/gText.h:30,

    from C:\Users\farin\Documents\Arduino\libraries\glcd/glcd.h:40,

    from C:\Users\farin\Documents\Arduino\libraries\glcd\ex amples\ks0108example\ks0108example.pde:12:

    C:\Users\farin\Documents\Arduino\libraries\Arduino Menu-master/core_pins.h:2096:74: error: 'uint32_t micros()' was declared 'extern' and later 'static' [-fpermissive]

    static inline uint32_t micros(void) __attribute__((always_inline, unused));

    ^

    In file included from sketch\ks0108example.pde.cpp:1:0:

    C:\Users\farin\Desktop\arduino-nightly\hardware\arduino\avr\cores\arduino/Arduino.h:133:15: error: previous declaration of 'long unsigned int micros()' [-fpermissive]

    unsigned long micros(void);

    ^

    In file included from C:\Users\farin\Documents\Arduino\libraries\Arduino Menu-master/wiring.h:9:0,

    from C:\Users\farin\Documents\Arduino\libraries\Menu/WProgram.h:10,

    from C:\Users\farin\Documents\Arduino\libraries\glcd/include/Streaming.h:24,

    from C:\Users\farin\Documents\Arduino\libraries\glcd/include/gText.h:30,

    from C:\Users\farin\Documents\Arduino\libraries\glcd/glcd.h:40,

    from C:\Users\farin\Documents\Arduino\libraries\glcd\ex amples\ks0108example\ks0108example.pde:12:

    C:\Users\farin\Documents\Arduino\libraries\Arduino Menu-master/core_pins.h:2105:85: error: 'void delayMicroseconds(uint16_t)' was declared 'extern' and later 'static' [-fpermissive]

    static inline void delayMicroseconds(uint16_t) __attribute__((always_inline, unused));

    ^

    In file included from sketch\ks0108example.pde.cpp:1:0:

    C:\Users\farin\Desktop\arduino-nightly\hardware\arduino\avr\cores\arduino/Arduino.h:135:6: error: previous declaration of 'void delayMicroseconds(unsigned int)' [-fpermissive]

    void delayMicroseconds(unsigned int us);

    ^

    In file included from C:\Users\farin\Documents\Arduino\libraries\Menu/WProgram.h:10:0,

    from C:\Users\farin\Documents\Arduino\libraries\glcd/include/Streaming.h:24,

    from C:\Users\farin\Documents\Arduino\libraries\glcd/include/gText.h:30,

    from C:\Users\farin\Documents\Arduino\libraries\glcd/glcd.h:40,

    from C:\Users\farin\Documents\Arduino\libraries\glcd\ex amples\ks0108example\ks0108example.pde:12:

    C:\Users\farin\Documents\Arduino\libraries\Arduino Menu-master/wiring.h:72:17: error: conflicting declaration 'typedef uint8_t boolean'

    typedef uint8_t boolean;

    ^

    In file included from sketch\ks0108example.pde.cpp:1:0:

    C:\Users\farin\Desktop\arduino-nightly\hardware\arduino\avr\cores\arduino/Arduino.h:117:14: error: 'boolean' has a previous declaration as 'typedef bool boolean'

    typedef bool boolean;

    ^

    In file included from C:\Users\farin\Documents\Arduino\libraries\Menu/WProgram.h:10:0,

    from C:\Users\farin\Documents\Arduino\libraries\glcd/include/Streaming.h:24,

    from C:\Users\farin\Documents\Arduino\libraries\glcd/include/gText.h:30,

    from C:\Users\farin\Documents\Arduino\libraries\glcd/glcd.h:40,

    from C:\Users\farin\Documents\Arduino\libraries\glcd\ex amples\ks0108example\ks0108example.pde:12:

    C:\Users\farin\Documents\Arduino\libraries\Arduino Menu-master/wiring.h:78:59: error: declaration of C function 'void attachInterrupt(uint8_t, void (*)(), uint8_t)' conflicts with

    void attachInterrupt(uint8_t, void (*)(void), uint8_t mode);

    ^

    In file included from sketch\ks0108example.pde.cpp:1:0:

    C:\Users\farin\Desktop\arduino-nightly\hardware\arduino\avr\cores\arduino/Arduino.h:142:6: error: previous declaration 'void attachInterrupt(uint8_t, void (*)(), int)' here

    void attachInterrupt(uint8_t, void (*)(void), int mode);

    ^

    In file included from C:\Users\farin\Documents\Arduino\libraries\glcd/include/Streaming.h:24:0,

    from C:\Users\farin\Documents\Arduino\libraries\glcd/include/gText.h:30,

    from C:\Users\farin\Documents\Arduino\libraries\glcd/glcd.h:40,

    from C:\Users\farin\Documents\Arduino\libraries\glcd\ex amples\ks0108example\ks0108example.pde:12:

    C:\Users\farin\Documents\Arduino\libraries\Menu/WProgram.h:20:83: error: default argument given for parameter 3 of 'long unsigned int pulseIn(uint8_t, uint8_t, long unsigned int)' [-fpermissive]

    unsigned long pulseIn(uint8_t pin, uint8_t state, unsigned long timeout = 1000000L);

    ^

    In file included from C:\Users\farin\Documents\Arduino\libraries\Menu/WProgram.h:10:0,

    from C:\Users\farin\Documents\Arduino\libraries\glcd/include/Streaming.h:24,

    from C:\Users\farin\Documents\Arduino\libraries\glcd/include/gText.h:30,

    from C:\Users\farin\Documents\Arduino\libraries\glcd/glcd.h:40,

    from C:\Users\farin\Documents\Arduino\libraries\glcd\ex amples\ks0108example\ks0108example.pde:12:

    C:\Users\farin\Documents\Arduino\libraries\Arduino Menu-master/wiring.h:75:15: error: after previous specification in 'long unsigned int pulseIn(uint8_t, uint8_t, long unsigned int)' [-fpermissive]

    unsigned long pulseIn(uint8_t pin, uint8_t state, unsigned long timeout);

    ^

    In file included from C:\Users\farin\Documents\Arduino\libraries\glcd/include/Streaming.h:24:0,

    from C:\Users\farin\Documents\Arduino\libraries\glcd/include/gText.h:30,

    from C:\Users\farin\Documents\Arduino\libraries\glcd/glcd.h:40,

    from C:\Users\farin\Documents\Arduino\libraries\glcd\ex amples\ks0108example\ks0108example.pde:12:

    C:\Users\farin\Documents\Arduino\libraries\Menu/WProgram.h:22:75: error: default argument given for parameter 3 of 'void tone(uint8_t, unsigned int, long unsigned int)' [-fpermissive]

    void tone(uint8_t _pin, unsigned int frequency, unsigned long duration = 0);

    ^

    In file included from sketch\ks0108example.pde.cpp:1:0:

    C:\Users\farin\Desktop\arduino-nightly\hardware\arduino\avr\cores\arduino/Arduino.h:238:6: error: after previous specification in 'void tone(uint8_t, unsigned int, long unsigned int)' [-fpermissive]

    void tone(uint8_t _pin, unsigned int frequency, unsigned long duration = 0);

    ^

    In file included from C:\Users\farin\Documents\Arduino\libraries\glcd/include/gText.h:31:0,

    from C:\Users\farin\Documents\Arduino\libraries\glcd/glcd.h:40,

    from C:\Users\farin\Documents\Arduino\libraries\glcd\ex amples\ks0108example\ks0108example.pde:12:

    C:\Users\farin\Documents\Arduino\libraries\glcd/include/glcd_Device.h:85:7: error: conflicting return type specified for 'virtual void glcd_Device::write(uint8_t)'

    void write(uint8_t); // for Print base class

    ^

    In file included from C:\Users\farin\Desktop\arduino-nightly\hardware\arduino\avr\cores\arduino/Stream.h:26:0,

    from C:\Users\farin\Desktop\arduino-nightly\hardware\arduino\avr\cores\arduino/HardwareSerial.h:29,

    from C:\Users\farin\Desktop\arduino-nightly\hardware\arduino\avr\cores\arduino/Arduino.h:224,

    from sketch\ks0108example.pde.cpp:1:

    C:\Users\farin\Desktop\arduino-nightly\hardware\arduino\avr\cores\arduino/Print.h:48:20: error: overriding 'virtual size_t Print::write(uint8_t)'

    virtual size_t write(uint8_t) = 0;

    ^

    In file included from C:\Users\farin\Desktop\arduino-nightly\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

    from sketch\ks0108example.pde.cpp:1:

    C:\Users\farin\Documents\Arduino\libraries\glcd/fonts/Arial14.h:55:27: error: variable 'Arial_14' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

    static uint8_t Arial_14[] PROGMEM = {

    ^

    C:\Users\farin\Documents\Arduino\libraries\glcd/fonts/SystemFont5x7.h:48:28: error: variable 'System5x7' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

    static uint8_t System5x7[] PROGMEM = {

    ^

    C:\Users\farin\Documents\Arduino\libraries\glcd/bitmaps/ArduinoIcon64x64.h:11:35: error: variable 'ArduinoIcon64x64' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

    static uint8_t ArduinoIcon64x64[] PROGMEM = {

    ^

    exit status 1
    Error compiling for board Arduino/Genuino Mega or Mega 2560.

  7. #27
    مدیر گروه
    تاریخ عضویت
    Nov 2013
    محل سکونت
    ایران
    نوشته ها
    4,064
    نقل قول نوشته اصلی توسط ANOOSHEH نمایش پست ها
    این بخشی از متن ارور خود اگزمپل glcd
    هستش
    شما کدوم قسمت کد رو دارید کامپایل می کنید دقیقا ؟
    این ارورا منطقی نیست
    کد رو بزارید

  8. #28
    Member
    تاریخ عضویت
    May 2016
    نوشته ها
    86
    اینم کد گفتم که من از اگزمپلهای خود کتابخونه های جی ال سی دی استفاده میکنم همشون خطا میده
    #include <ks0108.h>
    #include "Arial14.h" // proportional font
    #include "SystemFont5x7.h" // system font
    #include "ArduinoIcon.h" // bitmap

    unsigned long startMillis;
    unsigned int loops = 0;
    unsigned int iter = 0;

    void setup(){
    delay(500); // allow time for LCD to reset
    GLCD.Init(NON_INVERTED); // initialise the library, non inverted writes pixels onto a clear screen
    GLCD.ClearScreen();
    GLCD.DrawBitmap(ArduinoIcon, 32,0, BLACK); //draw the bitmap at the given x,y position
    GLCD.SelectFont(System5x7); // switch to fixed width system font
    countdown(5);
    GLCD.ClearScreen();
    introScreen(); // show some intro stuff
    GLCD.ClearScreen();
    }

    void introScreen(){
    GLCD.SelectFont(Arial_14); // you can also make your own fonts, see playground for details
    GLCD.GotoXY(20, 2);
    GLCD.Puts("GLCD version ");
    GLCD.PrintNumber(GLCD_VERSION);
    GLCD.DrawRoundRect(16,0,99,18, 5, BLACK); // rounded rectangle around text area
    GLCD.SelectFont(System5x7); // switch to fixed width system font
    showCharacters();
    countdown(5);
    }

    void showCharacters(){
    byte line = 3; // start on the fourth line
    for(byte c = 32; c <=127; c++){
    if( (c-32) % 20 == 0)
    GLCD.CursorTo(1,line++); // CursorTo is used for fixed width system font
    GLCD.PutChar(c);
    }
    }

    void drawSpinner(byte pos, byte x, byte y) {
    // this draws an object that appears to spin
    switch(pos % 8) {
    case 0 : GLCD.DrawLine( x, y-8, x, y+8, BLACK); break;
    case 1 : GLCD.DrawLine( x+3, y-7, x-3, y+7, BLACK); break;
    case 2 : GLCD.DrawLine( x+6, y-6, x-6, y+6, BLACK); break;
    case 3 : GLCD.DrawLine( x+7, y-3, x-7, y+3, BLACK); break;
    case 4 : GLCD.DrawLine( x+8, y, x-8, y, BLACK); break;
    case 5 : GLCD.DrawLine( x+7, y+3, x-7, y-3, BLACK); break;
    case 6 : GLCD.DrawLine( x+6, y+6, x-6, y-6, BLACK); break;
    case 7 : GLCD.DrawLine( x+3, y+7, x-3, y-7, BLACK); break;
    }
    }

    void countdown(int count){
    while(count--){ // do countdown
    GLCD.CursorTo(0,1); // first column, second row (offset is from 0)
    GLCD.PutChar(count + '0');
    delay(1000);
    }
    }

    void loop(){ // run over and over again
    iter = 0;
    startMillis = millis();
    while( millis() - startMillis < 1000){ // loop for one second
    GLCD.DrawRect(0, 0, 64, 61, BLACK); // rectangle in left side of screen
    GLCD.DrawRoundRect(68, 0, 58, 61, 5, BLACK); // rounded rectangle around text area
    for(int i=0; i < 62; i += 4)
    GLCD.DrawLine(1,1,63,i, BLACK); // draw lines from upper left down right side of rectangle
    GLCD.DrawCircle(32,31,30,BLACK); // draw circle centered in the left side of screen
    GLCD.FillRect(92,40,16,16, WHITE); // clear previous spinner position
    drawSpinner(loops++,100,48); // draw new spinner position
    //GLCD.FillRect(24,txtLINE3,14,14, WHITE); // clear text area that will be drawn below
    GLCD.CursorTo(5,5); // locate curser for printing text
    GLCD.PrintNumber(++iter); // print current iteration at the current cursor position
    }
    // display number of iterations in one second
    GLCD.ClearScreen(); // clear the screen
    GLCD.CursorTo(14,2); // positon cursor
    GLCD.Puts("FPS= "); // print a text string
    GLCD.PrintNumber(iter); // print a number
    }

  9. #29
    مدیر گروه
    تاریخ عضویت
    Nov 2013
    محل سکونت
    ایران
    نوشته ها
    4,064
    اروری که به شما میده منقی نیست اصلا
    من همین کد رو با کتابخونه glcd کامپایل می کنم فقط ارور wprogram میده که اون هم با یک تغییر اسم ساده حل میشه

    ممکنه کتابخونه رو اشتباه نصب کرده باشید

  10. #30
    Member
    تاریخ عضویت
    May 2016
    نوشته ها
    86
    میشه کتابخونه رو اینجا بذارید یه کتابخونه امتحان شده و کد امتحان شده

صفحه 3 از 5 نخستنخست 12345 آخرینآخرین

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

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

SEO by vBSEO