Skip to main content

GPIO, Serial and I2C

GPIO

As the AVR-IoT Cellular Mini utilises the DxCore, the pin naming is different from regular Arduino. An example sketch showing this can be found in the provided library examples. Instead of e.g. pin 0, you have to specify port and pin: PIN_PA0.

Serial

The Serial peripheral connected with the USB cable is Serial3. A demonstration of how to configure the Serial peripheral as well as how to use the provided Log module can be found in the serial.ino example sketch provided by the library.

I2C

The AVR-IoT Cellular Mini has two I2C peripherals: I2C0 and I2C1, corresponding to Wire and Wire1, respectively. The peripherals/connectors connecting to them are the following:

  • I2C0/Wire: ECC, light sensor
  • I2C1/Wire1: Temperature sensor, qwic connector