выдает такие ошибки Код (Text): BritishLamp.ino: In function 'void setup()': BritishLamp:227: error: 'i2cInit' was not declared in this scope BritishLamp.ino: In function 'byte mpr121Read(uint8_t)': BritishLamp:642: error: 'i2cSendStart' was not declared in this scope BritishLamp:643: error: 'i2cWaitForComplete' was not declared in this scope BritishLamp:645: error: 'i2cSendByte' was not declared in this scope BritishLamp:655: error: 'TRUE' was not declared in this scope BritishLamp:655: error: 'i2cReceiveByte' was not declared in this scope BritishLamp:658: error: 'i2cGetReceivedByte' was not declared in this scope BritishLamp:660: error: 'i2cSendStop' was not declared in this scope BritishLamp:662: error: 'cbi' was not declared in this scope BritishLamp:663: error: 'sbi' was not declared in this scope BritishLamp.ino: In function 'void mpr121Write(unsigned char, unsigned char)': BritishLamp:670: error: 'i2cSendStart' was not declared in this scope BritishLamp:671: error: 'i2cWaitForComplete' was not declared in this scope BritishLamp:673: error: 'i2cSendByte' was not declared in this scope BritishLamp:682: error: 'i2cSendStop' was not declared in this scope Мы подключили тач сенсор вот так: GND - GND VCC - 5V SDA - A4 SCL - A5 правильно?
Врррооооде... Переверните Uno, там внизу, рядом с USB на колодках есть надпись SDA, SCL. Библиотеку то подключить Заааабыли) Вот там второй зип архив (GroveIICTouchSensor.zip) — это библиотека. В Arduino IDE идёте в «Эскиз»→«Импорт библиотек»→«Добавить библиотеку». Оттуда выбираете этот .zip архив (прямо сразу зип), жмёте Open, и всё заработает
все сделали, сначала работало все, но потом выдает такую ошибку Код (Text): /Users/aziza/Documents/Arduino/libraries/GroveMultiTouch/GroveMultiTouch.cpp: In member function 'void GroveMultiTouch::set_register(int, unsigned char, unsigned char)': /Users/aziza/Documents/Arduino/libraries/GroveMultiTouch/GroveMultiTouch.cpp:111: error: 'Wire' was not declared in this scope /Users/aziza/Documents/Arduino/libraries/GroveMultiTouch/GroveMultiTouch.cpp: In member function 'void GroveMultiTouch::readTouchInputs()': /Users/aziza/Documents/Arduino/libraries/GroveMultiTouch/GroveMultiTouch.cpp:121: error: 'Wire' was not declared in this scope