Skip to content

Circuitpython - Generic datalogger code using platformdetect for sbc/embedded library switching #298

@tyeth

Description

@tyeth

Hi, I know this is meant for python platforms, but the utility of it to detect if embedded or linux_sbc is immense. It needs a minor tweak to make the code compatible with circuitpython, which I've done on this branch:
https://github.com/tyeth/Adafruit_Python_PlatformDetect/tree/circuitpython-error-fix

I've done a pull request as the changes do no harm and are in line with the files syntax, being only syntactic improvements/fixes as I can see it. #297

If it makes sense to anyone else too then I'd like to have this available in circuitpython libraries, so one can circup your code to a working fashion in a similar vein to pip. I've used it for example to detect whether to switch python logging module with adafruit logging (along with a few other things related to code.py functionality).

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