PU2CLR QN8066 Arduino Library 1.3.0
Arduino Library for QN8066Devices - By Ricardo Lima Caratti
Loading...
Searching...
No Matches
Device Checking

Functions

bool QN8066::detectDevice ()
 Checks communication with QN8066 via I2C.
 
uint8_t QN8066::scanI2CBus (uint8_t *device)
 Scans the I2C bus and returns the addresses of the devices found.
 

Detailed Description

Function Documentation

◆ detectDevice()

bool QN8066::detectDevice ( )

Checks communication with QN8066 via I2C.

Checks if the QN8066 is available on the I2C bus. Remember that the QN8066 responds to the address 0x21

Returns
true or false

◆ scanI2CBus()

uint8_t QN8066::scanI2CBus ( uint8_t *  device)

Scans the I2C bus and returns the addresses of the devices found.

Searches for devices connected to the I2C bus. The addresses of the devices found are stored in the "device" array.

Parameters
devicearray of device addresses found.
Returns
uint8_t number of devices found or 0 if no device found or error.