40 lines
1.4 KiB
C
40 lines
1.4 KiB
C
#include "py/objtuple.h"
|
|
#include "shared-bindings/board/__init__.h"
|
|
|
|
STATIC const mp_rom_obj_tuple_t camera_data_tuple = {
|
|
{&mp_type_tuple},
|
|
8,
|
|
{
|
|
MP_ROM_PTR(&pin_GPIO34),
|
|
MP_ROM_PTR(&pin_GPIO13),
|
|
MP_ROM_PTR(&pin_GPIO14),
|
|
MP_ROM_PTR(&pin_GPIO35),
|
|
MP_ROM_PTR(&pin_GPIO39), // "S_VN"
|
|
MP_ROM_PTR(&pin_GPIO38),
|
|
MP_ROM_PTR(&pin_GPIO37),
|
|
MP_ROM_PTR(&pin_GPIO36), // "S_VP"
|
|
}
|
|
};
|
|
|
|
STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
|
|
CIRCUITPYTHON_BOARD_DICT_STANDARD_ITEMS
|
|
|
|
{ MP_ROM_QSTR(MP_QSTR_I2S_SCK), MP_ROM_PTR(&pin_GPIO26) },
|
|
{ MP_ROM_QSTR(MP_QSTR_I2S_WS), MP_ROM_PTR(&pin_GPIO32) },
|
|
{ MP_ROM_QSTR(MP_QSTR_I2S_SDO), MP_ROM_PTR(&pin_GPIO32) },
|
|
|
|
{ MP_ROM_QSTR(MP_QSTR_BOOT), MP_ROM_PTR(&pin_GPIO0) },
|
|
|
|
{ MP_ROM_QSTR(MP_QSTR_LED_RED), MP_ROM_PTR(&pin_GPIO21) },
|
|
{ MP_ROM_QSTR(MP_QSTR_LED_WHITE), MP_ROM_PTR(&pin_GPIO22) },
|
|
|
|
{ MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&board_i2c_obj) },
|
|
|
|
{ MP_ROM_QSTR(MP_QSTR_CAMERA_DATA), MP_ROM_PTR(&camera_data_tuple) },
|
|
{ MP_ROM_QSTR(MP_QSTR_CAMERA_VSYNC), MP_ROM_PTR(&pin_GPIO5) },
|
|
{ MP_ROM_QSTR(MP_QSTR_CAMERA_HREF), MP_ROM_PTR(&pin_GPIO27) },
|
|
{ MP_ROM_QSTR(MP_QSTR_CAMERA_PCLK), MP_ROM_PTR(&pin_GPIO25) },
|
|
{ MP_ROM_QSTR(MP_QSTR_CAMERA_XCLK), MP_ROM_PTR(&pin_GPIO4) },
|
|
};
|
|
MP_DEFINE_CONST_DICT(board_module_globals, board_module_globals_table);
|