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:
robert-hh
2022-10-07 09:40:45 +02:00
committed by Damien George
parent e5cf3fab95
commit 4d38ab652e
4 changed files with 4 additions and 4 deletions

View File

@@ -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) {