forked from adafruit/circuitpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDemuxKeyMatrix.h
More file actions
25 lines (20 loc) · 743 Bytes
/
DemuxKeyMatrix.h
File metadata and controls
25 lines (20 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// This file is part of the CircuitPython project: https://circuitpython.org
//
// SPDX-FileCopyrightText: Copyright (c) 2024 CDarius
//
// SPDX-License-Identifier: MIT
#pragma once
#include "py/obj.h"
#include "py/objtuple.h"
#include "common-hal/digitalio/DigitalInOut.h"
#include "shared-module/keypad/__init__.h"
#include "shared-module/keypad/EventQueue.h"
typedef struct {
KEYPAD_SCANNER_COMMON_FIELDS;
mp_obj_tuple_t *row_addr_digitalinouts;
mp_obj_tuple_t *column_digitalinouts;
bool columns_to_anodes;
bool transpose;
} keypad_demux_demuxkeymatrix_obj_t;
void keypad_demux_demuxkeymatrix_scan(keypad_demux_demuxkeymatrix_obj_t *self);
void demuxkeymatrix_never_reset(keypad_demux_demuxkeymatrix_obj_t *self);