16 Serial.println(
"Nano I2C IO Expander sample start.");
22 #define QUANTUM 5.0/1024.0 23 #define ERROR 0.1059 //need to be adjsuted 11% between 0.2 and 4.5V 28 Serial.print(
"analog value = " + String(analogVal) );
32 Serial.println(
", analog voltage = " + String(voltage, 3) );
void begin(int add=0x5F)
function that start the I2C protocol with nanoI2CIOExpander
Header file of the class CNanoI2CIOExpander...
int analogRead(int input)
A method tha return 10bits value of one of the 6 analog inputs...
bool test()
A special test method that use 2 special register to write and read and display on the Serial monitor...
A class to provide usual io functioon for nanoI2CIOExpander project...