obniz
Version:
obniz sdk for javascript
35 lines (34 loc) • 1.04 kB
TypeScript
/**
* @packageDocumentation
* @module Parts.M5StickC_ADC
*/
import Obniz from '../../../obniz';
import { PeripheralI2C } from '../../../obniz/libs/io_peripherals/i2c';
import { ObnizPartsInterface, ObnizPartsInfo } from '../../../obniz/ObnizPartsInterface';
import { I2cPartsAbstractOptions } from '../../i2cParts';
export declare type M5StickC_ADCOptions = I2cPartsAbstractOptions;
export default class M5StickC_ADC implements ObnizPartsInterface {
static info(): ObnizPartsInfo;
keys: string[];
requiredKeys: string[];
params: any;
address: number;
conversionDelay: number;
config_regs: any;
config: any;
os: number;
mode: number;
dataRate: number;
pga: number;
protected obniz: Obniz;
protected i2c: PeripheralI2C;
private minCode;
constructor();
wired(obniz: Obniz): void;
getVoltageWait(): Promise<number>;
setRate(dataRate: number): void;
setGain(gain: number): void;
setMode(mode: string): void;
private getWait;
private updateConfig;
}