新手提问必读-Arduino中文社区 - Powered by Discuz!

Arduino中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

楼主: coloz

[已解决] 新手提问必读

  [复制链接]
发表于 2017-12-28 22:19 | 显示全部楼层
你好各位我在下载bootloader时出错
Arduino:1.8.5 (Windows 7), 开发板:"Arduino Mini, ATmega328P"

avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

烧录引导程序出错。

发表于 2018-1-2 22:04 来自手机 | 显示全部楼层
你好,我用矩阵键盘,想输入三位数的数据,比如358,用键盘只能一个一个输,无法组成数据,网上没找到教程,请教一下,谢谢!
发表于 2018-1-20 23:00 | 显示全部楼层
本人菜鸟,请问使用Mega2560板子,为什么每次拔掉USB链接 断电后,再连接,程序就不跑了,怎么解决呢?
发表于 2018-3-22 19:37 | 显示全部楼层
应该有个提问的艺术.......
发表于 2018-3-25 16:48 | 显示全部楼层
之前发过一个求助贴,状态是未解决,问题现在已经解决了,那现在怎么将状态调整为已解决呢?
发表于 2018-5-10 16:52 来自手机 | 显示全部楼层
我也说一句红外线模块怎么和arduino连接,
发表于 2018-5-18 17:55 | 显示全部楼层
您好coloz, 我在使用Arduino UNO, IDE 1.8.5, Win 10 系统。我在GitHub中下载了LCD.cpp & LCD.h 和 LiquidCrystal.cpp & LiquidCrystal.h 可是所有 lcd.--- 的程序都报错。我把说有 wprogram.h 都改成了 arduino.h,并且使用查地址的程序查出来address的确是0x27。所有的线都是连的对的。在Reddit中的解决方案都不可用。我怀疑是不是库的问题。万分感谢高手。

程序:
#include <Wire.h>
#include <LCD.h>
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27, 2,1,0,4,5,6,7); // check 0x__ (this case 0x27) address using LCDtrial_01

void setup() {
  // put your setup code here, to run once:
  lcd.begin(16,2); // for a 16*2 LCD module
  lcd.setBacklightPin(3,OUTPUT);
  lcd.setBacklight(HIGH);
}

void loop() {
  // put your main code here, to run repeatedly:
  lcd.home(); // set cursor to 0,0
  lcd.print("HelloWorld");
  lcd.setCursor(0,1); // go to second line
  lcd.print("_12 # 啊 [ ");
  //delay(1000);
  //lcd.setBacklight(LOW);
  //lcd.setBacklight(HIGH);
  
}


报错:
In file included from C:\Users\jc135\Desktop\Arduino\LCDtrial_02\LCDtrial_02.ino:4:0:
C:\Users\jc135\Documents\Arduino\libraries\LiquidCrystal_I2C/LiquidCrystal_I2C.h:261:70: error: 'LCD_5x8DOTS' was not declared in this scope
    virtual void begin(uint8_t cols, uint8_t rows, uint8_t charsize = LCD_5x8DOTS);   
                                                                      ^
C:\Users\jc135\Desktop\Arduino\LCDtrial_02\LCDtrial_02.ino: In function 'void setup()':
LCDtrial_02:10: error: call to 'virtual void LiquidCrystal_I2C::begin(uint8_t, uint8_t, uint8_t)' uses the default argument for parameter 3, which is not yet defined
   lcd.begin(16,2); // for a 16*2 LCD module
                 ^
LCDtrial_02:11: error: 'class LiquidCrystal_I2C' has no member named 'setBacklightPin'
   lcd.setBacklightPin(3,OUTPUT);
       ^
LCDtrial_02:12: error: no matching function for call to 'LiquidCrystal_I2C::setBacklight(int)'
   lcd.setBacklight(HIGH);
                        ^
C:\Users\jc135\Desktop\Arduino\LCDtrial_02\LCDtrial_02.ino:12:24: note: candidate is:
In file included from C:\Users\jc135\Documents\Arduino\libraries\LiquidCrystal_I2C/LiquidCrystal_I2C.h:73:0,
                 from C:\Users\jc135\Desktop\Arduino\LCDtrial_02\LCDtrial_02.ino:4:
C:\Users\jc135\Documents\Arduino\libraries\LCD/LCD.h:50:14: note: void LCD::setBacklight(boolean, int)
         void setBacklight(boolean on, int minutesOn);
              ^
C:\Users\jc135\Documents\Arduino\libraries\LCD/LCD.h:50:14: note:   candidate expects 2 arguments, 1 provided
C:\Users\jc135\Desktop\Arduino\LCDtrial_02\LCDtrial_02.ino: In function 'void loop()':
LCDtrial_02:17: error: 'class LiquidCrystal_I2C' has no member named 'home'
   lcd.home(); // set cursor to 0,0
       ^
LCDtrial_02:18: error: 'class LiquidCrystal_I2C' has no member named 'print'
   lcd.print("HelloWorld");
       ^
LCDtrial_02:20: error: 'class LiquidCrystal_I2C' has no member named 'print'
   lcd.print("_12 # å•Š [ ");
       ^
exit status 1
call to 'virtual void LiquidCrystal_I2C::begin(uint8_t, uint8_t, uint8_t)' uses the default argument for parameter 3, which is not yet defined



谢谢
发表于 2018-5-30 08:56 来自手机 | 显示全部楼层
程序显示无循环该怎么弄
发表于 2018-6-3 13:50 | 显示全部楼层
大佬,你好。在做一个·Arduino蓝牙温湿度计(DHT11),就是要手机上面也能看到温湿度。网上下了程序和库。但是插完库说是对应多个库  删了一个还是不行
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|Archiver|手机版|Arduino中文社区

GMT+8, 2024-11-27 22:33 , Processed in 0.123292 second(s), 13 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表