8000 Set frequency default 60Mhz · adafruit/circuitpython@1d28719 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1d28719

Browse files
committed
Set frequency default 60Mhz
1 parent aea8f21 commit 1d28719

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

ports/raspberrypi/common-hal/displayio/ParallelBus.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ void common_hal_displayio_parallelbus_construct(displayio_parallelbus_obj_t* sel
4747
const mcu_pin_obj_t* data0, const mcu_pin_obj_t* command, const mcu_pin_obj_t* chip_select,
4848
const mcu_pin_obj_t* write, const mcu_pin_obj_t* read, const mcu_pin_obj_t* reset, uint32_t frequency) {
4949

50-
// If we did not set frequency guess at 60Mhz
51-
if (frequency == 0)
52-
frequency = 60000000;
53-
5450
uint8_t data_pin = data0->number;
5551
for (uint8_t i = 0; i < 8; i++) {
5652
if (!pin_number_is_free(data_pin + i)) {

shared-bindings/displayio/ParallelBus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ STATIC mp_obj_t displayio_parallelbus_make_new(const mp_obj_type_t *type, size_t
6868
{ MP_QSTR_write, MP_ARG_OBJ | MP_ARG_KW_ONLY | MP_ARG_REQUIRED },
6969
{ MP_QSTR_read, MP_ARG_OBJ | MP_ARG_KW_ONLY | MP_ARG_REQUIRED },
7070
{ MP_QSTR_reset, MP_ARG_OBJ | MP_ARG_KW_ONLY | MP_ARG_REQUIRED },
71-
{ MP_QSTR_frequency, MP_ARG_INT | MP_ARG_KW_ONLY, {.u_int = 0 } },
71+
{ MP_QSTR_frequency, MP_ARG_INT | MP_ARG_KW_ONLY, {.u_int = 60000000 } },
7272
};
7373
mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)];
7474
mp_arg_parse_all(n_args, pos_args, kw_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args);

0 commit comments

Comments
 (0)
0