Search found 1 match

by soujiro0725
Mon Oct 08, 2018 3:18 am
Forum: General Discussion
Topic: M5stack undefined reference to `TwoWire::onReceive(void (*)(int))'
Replies: 0
Views: 3403

M5stack undefined reference to `TwoWire::onReceive(void (*)(int))'

Arduino ide 1.8.7 Hi. I am trying to establish i2c communication with M5stack. But the following code raises an error. #include <Wire.h> #include <M5Stack.h> int SLAVE_ADDRESS = 0x40; void setup() { // put your setup code here, to run once: M5.begin(); Wire.begin(SLAVE_ADDRESS); //set slave address ...