-
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
help wantedExtra attention is neededExtra attention is neededsoftware: pybricks-micropythonIssues with Pybricks MicroPython firmware (or EV3 runtime)Issues with Pybricks MicroPython firmware (or EV3 runtime)topic: sensorsIssues involving sensorsIssues involving sensors
Description
There is no ADC driver for the NXT yet. We need a file adc_nxt.c here that implements pbdrv_adc_init and pbdrv_adc_get_ch.
Note: the NXT reads a few channels via the AVR coprocessor, and a few with the main CPU. We would need to sample both and make them available through the aforementioned API. nxos shows how to get the ones from the AVR. The ones on the main CPU can be read from the appropriate registers. The original firmware implements this if further references and configuration information is needed.
The CPU-based ADCs are used for the NXT color sensor (And partial sensor auto-detection).
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is neededsoftware: pybricks-micropythonIssues with Pybricks MicroPython firmware (or EV3 runtime)Issues with Pybricks MicroPython firmware (or EV3 runtime)topic: sensorsIssues involving sensorsIssues involving sensors