cosa-i2c-register

1.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i cosa-i2c-register

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

8.7 kB

Total Files

12

Last publish

Collaborators

  • dhillondeep
  • wio-admin