نمایش نتایج: از 1 به 10 از 53
Like Tree15 لایک

موضوع: نمایشگر nokia 5110 84mm x 84mm + برد کمکی

Hybrid View

  1. #1
    Junior Member
    تاریخ عضویت
    Sep 2013
    نوشته ها
    4
    با سلام و سپاس...
    هنگام آپلود کد در خط NOKIA5110 display = NOKIA5110(7, 6, 5, 4, 3);
    خطای NOKIA5110 Dose Not name a type دارد و همینطور ارور های زیر را، کجای کارم اشتباه است

    sketch_sep25a:24: error: 'NOKIA5110' does not name a type
    sketch_sep25a.ino: In function 'void setup()':
    sketch_sep25a:56: error: 'display' was not declared in this scope
    sketch_sep25a:74: error: 'BLACK' was not declared in this scope
    sketch_sep25a:137: error: 'WHITE' was not declared in this scope
    sketch_sep25a.ino: In function 'void testdrawbitmap(const uint8_t*, uint8_t, uint8_t)':
    sketch_sep25a:172: error: 'display' was not declared in this scope
    sketch_sep25a:187: error: 'display' was not declared in this scope
    sketch_sep25a:187: error: 'BLACK' was not declared in this scope
    sketch_sep25a:189: error: 'display' was not declared in this scope
    sketch_sep25a:194: error: 'WHITE' was not declared in this scope
    sketch_sep25a.ino: In function 'void testdrawchar()':
    sketch_sep25a:209: error: 'display' was not declared in this scope
    sketch_sep25a:210: error: 'BLACK' was not declared in this scope
    sketch_sep25a.ino: In function 'void testdrawcircle()':
    sketch_sep25a:223: error: 'display' was not declared in this scope
    sketch_sep25a:224: error: 'BLACK' was not declared in this scope
    sketch_sep25a.ino: In function 'void testfillrect()':
    sketch_sep25a:231: error: 'display' was not declared in this scope
    sketch_sep25a.ino: In function 'void testdrawtriangle()':
    sketch_sep25a:240: error: 'display' was not declared in this scope
    sketch_sep25a:243: error: 'BLACK' was not declared in this scope
    sketch_sep25a.ino: In function 'void testfilltriangle()':
    sketch_sep25a:249: error: 'BLACK' was not declared in this scope
    sketch_sep25a:250: error: 'display' was not declared in this scope
    sketch_sep25a:254: error: 'WHITE' was not declared in this scope
    sketch_sep25a.ino: In function 'void testdrawroundrect()':
    sketch_sep25a:261: error: 'display' was not declared in this scope
    sketch_sep25a:262: error: 'BLACK' was not declared in this scope
    sketch_sep25a.ino: In function 'void testfillroundrect()':
    sketch_sep25a:268: error: 'BLACK' was not declared in this scope
    sketch_sep25a:269: error: 'display' was not declared in this scope
    sketch_sep25a:271: error: 'WHITE' was not declared in this scope
    sketch_sep25a.ino: In function 'void testdrawrect()':
    sketch_sep25a:278: error: 'display' was not declared in this scope
    sketch_sep25a:279: error: 'BLACK' was not declared in this scope
    sketch_sep25a.ino: In function 'void testdrawline()':
    sketch_sep25a:285: error: 'display' was not declared in this scope
    sketch_sep25a:286: error: 'BLACK' was not declared in this scope
    sketch_sep25a:289: error: 'display' was not declared in this scope
    sketch_sep25a:290: error: 'BLACK' was not declared in this scope
    sketch_sep25a:295: error: 'display' was not declared in this scope
    sketch_sep25a:297: error: 'BLACK' was not declared in this scope
    sketch_sep25a:301: error: 'BLACK' was not declared in this scope
    sketch_sep25a:308: error: 'BLACK' was not declared in this scope
    sketch_sep25a:312: error: 'BLACK' was not declared in this scope
    sketch_sep25a:319: error: 'BLACK' was not declared in this scope
    sketch_sep25a:323: error: 'BLACK' was not declared in this scope

    آردوینو مگا 2560 و LCD از فروشگاه آفتاب رایانه تهیه کرده ام.
    ویرایش توسط SiamakHadadi : 09-25-2013 در ساعت 03:39 PM

  2. #2
    مدیر اصلی
    تاریخ عضویت
    Aug 2012
    محل سکونت
    ایران
    نوشته ها
    440
    سلام
    این مشکل مربوط به Library هست ، احتمالا Library رو به توابع کتابخانه ای آردوینو اضاف نکردید.
    در ضمن بعضی از پین های مگا با برد Uno فرق می کنه
    این کد برای برد آردوینو Uno هست ، برای استفاده از مگا باید چندتا تغییر کوچیک بدید

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

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

SEO by vBSEO