Skip to content

Commit

Permalink
Merge pull request #5290 from lesamouraipourpre/patch-1
Browse files Browse the repository at this point in the history
Document missing 'frequency' parameter on ParallelBus.c
  • Loading branch information
jepler authored Sep 2, 2021
2 parents d49c5d6 + 9fffb5b commit 4922e67
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions shared-bindings/paralleldisplay/ParallelBus.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
//| protocol may be refered to as 8080-I Series Parallel Interface in datasheets. It doesn't handle
//| display initialization."""
//|
//| def __init__(self, *, data0: microcontroller.Pin, command: microcontroller.Pin, chip_select: microcontroller.Pin, write: microcontroller.Pin, read: microcontroller.Pin, reset: microcontroller.Pin) -> None:
//| def __init__(self, *, data0: microcontroller.Pin, command: microcontroller.Pin, chip_select: microcontroller.Pin, write: microcontroller.Pin, read: microcontroller.Pin, reset: microcontroller.Pin, frequency: int = 30_000_000) -> None:
//| """Create a ParallelBus object associated with the given pins. The bus is inferred from data0
//| by implying the next 7 additional pins on a given GPIO port.
//|
Expand All @@ -56,7 +56,8 @@
//| :param microcontroller.Pin chip_select: Chip select pin
//| :param microcontroller.Pin write: Write pin
//| :param microcontroller.Pin read: Read pin
//| :param microcontroller.Pin reset: Reset pin"""
//| :param microcontroller.Pin reset: Reset pin
//| :param int frequency: The communication frequency in Hz for the display on the bus"""
//| ...
//|
STATIC mp_obj_t paralleldisplay_parallelbus_make_new(const mp_obj_type_t *type, size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {
Expand Down

0 comments on commit 4922e67

Please sign in to comment.