mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 20:20:14 +01:00
samd: Make ADC, DAC, PWM, SPI objects consistent in how they print out.
All of ADC, DAC, Pin, PWM and SPI looked different before this change.
This commit is contained in:
@@ -126,7 +126,7 @@ STATIC mp_obj_t dac_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_
|
||||
|
||||
STATIC void dac_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) {
|
||||
dac_obj_t *self = self_in;
|
||||
mp_printf(print, "DAC(%u) PIN_PA%02u", self->id, self->gpio_id);
|
||||
mp_printf(print, "DAC(%u, Pin=%s)", self->id, pin_name(self->gpio_id));
|
||||
}
|
||||
|
||||
STATIC mp_obj_t dac_write(mp_obj_t self_in, mp_obj_t value_in) {
|
||||
|
||||
Reference in New Issue
Block a user