Lines Matching +full:disp +full:- +full:gpios
1 /* microbit.c - BBC micro:bit specific hooks */
6 * SPDX-License-Identifier: Apache-2.0
27 #define SEQ_PAGE (NRF_FICR->CODEPAGESIZE * (NRF_FICR->CODESIZE - 1))
28 #define SEQ_MAX (NRF_FICR->CODEPAGESIZE * 8 * SEQ_PER_BIT)
31 GPIO_DT_SPEC_GET(DT_NODELABEL(buttona), gpios);
33 GPIO_DT_SPEC_GET(DT_NODELABEL(buttonb), gpios);
50 struct mb_display *disp = mb_display_get(); in button_pressed() local
58 mb_display_print(disp, MB_DISPLAY_MODE_SINGLE, in button_pressed()
61 mb_display_print(disp, MB_DISPLAY_MODE_SINGLE, in button_pressed()
115 duration += *str - '0'; in board_play_tune()
145 struct mb_display *disp = mb_display_get(); in board_heartbeat() local
178 mb_display_image(disp, MB_DISPLAY_MODE_SINGLE, 2 * MSEC_PER_SEC, in board_heartbeat()
179 &hops_img[hops - 1], 1); in board_heartbeat()
185 struct mb_display *disp = mb_display_get(); in board_other_dev_pressed() local
189 mb_display_print(disp, MB_DISPLAY_MODE_SINGLE, 2 * MSEC_PER_SEC, "%X", in board_other_dev_pressed()
195 struct mb_display *disp = mb_display_get(); in board_attention() local
220 mb_display_image(disp, in board_attention()
224 mb_display_stop(disp); in board_attention()
258 return -EINVAL; in configure_buttons()
268 struct mb_display *disp = mb_display_get(); in board_init() local
274 return -ENODEV; in board_init()
277 *addr = NRF_UICR->CUSTOMER[0]; in board_init()
286 mb_display_print(disp, MB_DISPLAY_MODE_DEFAULT, SCROLL_SPEED, in board_init()