mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 20:20:14 +01:00
samd/machine_dac: Add the machine.DAC class.
It suuports 1 channel @ 10 bit for SAMD21, 2 channels @ 12 bit for SAMD51.
Instantiation by:
dac = machine.DAC(ch) # 0 or 1
Method write:
dac.write(value)
The output voltage range is 0..Vdd.
This commit is contained in:
@@ -91,6 +91,7 @@ SRC_C = \
|
||||
clock_config.c \
|
||||
help.c \
|
||||
machine_adc.c \
|
||||
machine_dac.c \
|
||||
machine_i2c.c \
|
||||
machine_led.c \
|
||||
machine_pin.c \
|
||||
@@ -149,6 +150,7 @@ endif
|
||||
# List of sources for qstr extraction
|
||||
SRC_QSTR += \
|
||||
machine_adc.c \
|
||||
machine_dac.c \
|
||||
machine_i2c.c \
|
||||
machine_led.c \
|
||||
machine_pin.c \
|
||||
|
||||
Reference in New Issue
Block a user