코코아팹은 누구나 창의적 아이디어를 현실로 만들어 낼 수 있도록
만들고, 공유하고, 배울 수 있는 터전이
되고자 합니다.
아이디와 비밀번호를 잊으셨나요?아이디 / 비밀번호 찾기
코코아팹 회원이 아니신가요? 회원가입
학교 졸작인데 막혔어요 도움좀 주세요. 아두이노 부화기 제작하는 건데....
용가리 | 2020-10-04
|
|
---|---|
#include <SHT1x.h> U8GLIB_NHD_C12864 u8g(13, 11, 10, 9, 8); // SPI Com: SCK = 13, MOSI = 11, CS = 10, CD = 9, RST = 8 #define ON 1 const int light = 12; /* 전구는 아두이노 12번 포트를 사용 */ float Celsius = 0; int VCC = A3; void setup(void) pinMode(VCC, OUTPUT); digitalWrite(VCC, HIGH); u8g.setContrast(0); // Config the contrast to the best effect else if ( u8g.getMode() == U8G_MODE_GRAY2BIT ) { else if ( u8g.getMode() == U8G_MODE_BW ) { else if ( u8g.getMode() == U8G_MODE_HICOLOR ) { void loop(void) // rebuild the picture after some delay void readSensor() void printOut() void draw(void) {
결과 C:\Users\lg\Documents\Arduino\sketch_oct04b\sketch_oct04b.ino: In function 'void draw()': sketch_oct04b:105:21: error: no matching function for call to 'U8GLIB_NHD_C12864::drawStr(int, int)' u8g.drawStr( 0, 10); ^ In file included from C:\Users\lg\Documents\Arduino\sketch_oct04b\sketch_oct04b.ino:2:0: C:\Users\lg\Documents\Arduino\libraries\U8glib/U8glib.h:169:16: note: candidate: u8g_uint_t U8GLIB::drawStr(u8g_uint_t, u8g_uint_t, const char*) u8g_uint_t drawStr(u8g_uint_t x, u8g_uint_t y, const char *s) { return u8g_DrawStr(&u8g, x, y, s); } ^~~~~~~ C:\Users\lg\Documents\Arduino\libraries\U8glib/U8glib.h:169:16: note: candidate expects 3 arguments, 2 provided C:\Users\lg\Documents\Arduino\libraries\U8glib/U8glib.h:199:16: note: candidate: u8g_uint_t U8GLIB::drawStr(u8g_uint_t, u8g_uint_t, const __FlashStringHelper*) u8g_uint_t drawStr(u8g_uint_t x, u8g_uint_t y, const __FlashStringHelper *s) { return u8g_DrawStrP(&u8g, x, y, (u8g_pgm_uint8_t *)s); } ^~~~~~~ C:\Users\lg\Documents\Arduino\libraries\U8glib/U8glib.h:199:16: note: candidate expects 3 arguments, 2 provided sketch_oct04b:108:21: error: no matching function for call to 'U8GLIB_NHD_C12864::drawStr(int, int)' u8g.drawStr( 0, 40); ^ In file included from C:\Users\lg\Documents\Arduino\sketch_oct04b\sketch_oct04b.ino:2:0: C:\Users\lg\Documents\Arduino\libraries\U8glib/U8glib.h:169:16: note: candidate: u8g_uint_t U8GLIB::drawStr(u8g_uint_t, u8g_uint_t, const char*) u8g_uint_t drawStr(u8g_uint_t x, u8g_uint_t y, const char *s) { return u8g_DrawStr(&u8g, x, y, s); } ^~~~~~~ C:\Users\lg\Documents\Arduino\libraries\U8glib/U8glib.h:169:16: note: candidate expects 3 arguments, 2 provided C:\Users\lg\Documents\Arduino\libraries\U8glib/U8glib.h:199:16: note: candidate: u8g_uint_t U8GLIB::drawStr(u8g_uint_t, u8g_uint_t, const __FlashStringHelper*) u8g_uint_t drawStr(u8g_uint_t x, u8g_uint_t y, const __FlashStringHelper *s) { return u8g_DrawStrP(&u8g, x, y, (u8g_pgm_uint8_t *)s); } ^~~~~~~ C:\Users\lg\Documents\Arduino\libraries\U8glib/U8glib.h:199:16: note: candidate expects 3 arguments, 2 provided exit status 1 no matching function for call to 'U8GLIB_NHD_C12864::drawStr(int, int)'
이 리포트는 파일 -> 환경설정에 "컴파일중 자세한 출력보이기"를
|
|
이전글 | 앱인벤터 블루투스 통신을 빠르게 하기. | 2020-09-29 |
다음글 | DFplayer mini mp3 작동이 안됩니다. | 2020-10-07 |