Testato / SoftwareWire

Creates a software I2C/TWI bus on every pins
GNU General Public License v3.0
148 stars 33 forks source link

Generate compile error when slave mode begin(address) is used #13

Closed bperrybap closed 6 years ago

bperrybap commented 6 years ago

Pull request to generate an error when users attempt use slave mode. This addresses issue #7 by generating an error vs just making the warnings disappear.

It is pretty minimal. It removes the code for begin(address) and uses and error attribute in the header file.

I've tested this on linux using IDE version 1.8.5 and 1.0.1 You probably should test it yourself on your machine before it is merged and committed to the master branch.