ElectronicCats / ElectronicCats-PN7150

Arduino library for I2C access to the PN7150 RFID/Near Field Communication chip
MIT License
34 stars 15 forks source link

I2C clock frequency #27

Closed Josephh2021 closed 3 years ago

Josephh2021 commented 3 years ago

Hi,

I am using Arduino Mega 2560 to control PN7150 NFC Reader using I2C. I am measuring 100KHZ for I2C clock. I have been trying to change it using Wire.setClock(400000) command but it is not changing the frequency. Please let me know what I am doing wrong. Thanks.

Joseph

sabas1080 commented 3 years ago

Hi @Josephh2021

try to make the change before or after the wire.begin https://github.com/ElectronicCats/ElectronicCats-PN7150/blob/master/src/Electroniccats_PN7150.cpp#L62

Josephh2021 commented 3 years ago

Thanks for the response.