Skip to content

Hardware APIs #32

Open
Open
@hughrawlinson

Description

@hughrawlinson

I'm not sure which hardware is on the device beyond the accelerometer, but we should decide how we want app writers to interface with it - I know it's fairly well documented for hexpansions, but onboard hardware would be good.

If I understand correctly we have a couple of options:

  1. The hardware is already connected over the i2c mux. We document how to use the i2c mux and which devices are at which addresses, and leave app authors to it
  2. We write little driver apps to talk to the hardware over i2c and translate messages into an event bus based interface. We then document these interfaces, and in the hexpansion guide, for hexpansion devs who are attaching i2c hardware, we tell them to provide similar event bus based interfaces to the hardware
  3. We have micropython classes/objects that we provide in a library to app authors, that under the hood speak either i2c or over the event bus to the hardware. We encourage hexpansion authors to provide these classes for app authors to copy paste into their apps?

If someone could add a list of all the hardware, that would be cool

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