最終更新:2018-06-19 (火) 17:32:34 (2138d)  

Wire.begin
Top / Wire.begin

呼び出し

  • Wire.begin()
    Wire.begin(address)

ATmega328

クロック:100kHz

Under the Hood:

  • Initializes Wire library internal variables.
  • Calls twi.init?(), which
    • Sets two of the ATmega ports to be used by the TWI hardware:
    • if ATmega168, ATmega8?, or ATmega328P: PC4 for SDA and PC5 for SCL.
    • else PD0 for SCL and PD1 for SDA. See the reference sheet for your processor for more details.
  • Sets the TWI communication bit rate. to 100kHz.
  • Enables the TWI hardware.