UNPKG

@name-industry/ni-ina219

Version:

Module for using the WaveShare UPS Raspberry Pi Hat that has an embedded Texas Instruments INA219 sensor.

11 lines 246 B
export const outputAsJson = function (data, options) { if (options.passThrough) { return data; } else { return { success: true, msg: data.register, data: data } } }