cosa-i2c-register

Wio package for Cosa to provide access to AVR registers over I2C

Usage no npm install needed!

<script type="module">
  import cosaI2cRegister from 'https://cdn.skypack.dev/cosa-i2c-register';
</script>

README

Cosa I2C Registers

This is a wio package for Cosa that allows easy access to AVR registers over I2C bus. The package wraps all the system calls

Usage

Define a register using I2CRegister i2c_register{I2C_ADDRESS}. Provide the register with I2C address.

Wriite data using:

i2c_register.write16(REGISTER_ADDRESS, DATA);

Read data using:

i2c_register.write16(REGISTER_ADDRESS);

Install

wio install cosa-i2c-register