pxt-jacdac/illuminance/constants.ts

25 строки
629 B
TypeScript

namespace jacdac {
// Service: Illuminance
export const SRV_ILLUMINANCE = 0x1e6ecaf2
export const enum IlluminanceReg {
/**
* Read-only lux u22.10 (uint32_t). The amount of illuminance, as lumens per square metre.
*
* ```
* const [light] = jdunpack<[number]>(buf, "u22.10")
* ```
*/
Light = 0x101,
/**
* Read-only lux u22.10 (uint32_t). Error on the reported sensor value.
*
* ```
* const [lightError] = jdunpack<[number]>(buf, "u22.10")
* ```
*/
LightError = 0x106,
}
}