Skip to content

library updates! #1

Closed
Closed
@ladyada

Description

@ladyada

if const's have underlines, they wont be exposed outside the library, which i think makes sense for all the consts right? so instead of
TSL2561_DEFAULT_ADDRESS = const(0x39)
do
_TSL2561_DEFAULT_ADDRESS = const(0x39)


init should check the id and raise an RuntimeError if the chip is not found, the id() function can be inlined if you like - see https://github.com/adafruit/Adafruit_CircuitPython_BMP280/blob/master/adafruit_bmp280.py#L67


i know @tannewt mentioned changing lux to light but i actually just changed it back again (lux is a formal SI spec, light is just monotonic light measurements) so please make the property back to 'lux' (sorry!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions