mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
tests/board_calliope-mini: merge into tests/microbit, add Kconfig
This commit is contained in:
parent
3a4f30ec80
commit
b69513a58f
@ -1,10 +0,0 @@
|
||||
BOARD ?= calliope-mini
|
||||
include ../Makefile.tests_common
|
||||
|
||||
# This test application is for the Calliope mini only
|
||||
BOARD_WHITELIST := calliope-mini
|
||||
|
||||
# We want to test the Calliope mini support module
|
||||
USEMODULE += microbit
|
||||
|
||||
include $(RIOTBASE)/Makefile.include
|
@ -1,13 +0,0 @@
|
||||
Background
|
||||
==========
|
||||
The Calliope mini board comes with its own little utility library, that makes
|
||||
some of the boards unique feature like the 5x5 LED matrix usable to RIOT.
|
||||
|
||||
This test application is therefore specialized for only that board and its
|
||||
purpose is to test and showcase the board specific utility library.
|
||||
|
||||
|
||||
Expected result
|
||||
===============
|
||||
When running this application, you should see the string
|
||||
`Welcome RIOT @ Calliope mini!` scrolling by on the boards LED matrix.
|
@ -1,40 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2016 Freie Universität Berlin
|
||||
*
|
||||
* This file is subject to the terms and conditions of the GNU Lesser
|
||||
* General Public License v2.1. See the file LICENSE in the top level
|
||||
* directory for more details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @ingroup tests
|
||||
* @{
|
||||
*
|
||||
* @file
|
||||
* @brief Test the Calliope mini support library
|
||||
*
|
||||
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
||||
*
|
||||
* @}
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "timex.h"
|
||||
#include "microbit.h"
|
||||
|
||||
#define DELAY (120 * US_PER_MS)
|
||||
|
||||
int main(void)
|
||||
{
|
||||
puts("Welcome to RIOT!\n");
|
||||
puts("Please refer to the README.md for more information about this app\n");
|
||||
|
||||
microbit_matrix_init();
|
||||
|
||||
while (1) {
|
||||
microbit_matrix_shift_str("Welcome RIOT @ Calliope mini!", DELAY);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
@ -3,7 +3,7 @@ BOARD ?= microbit
|
||||
include ../Makefile.tests_common
|
||||
|
||||
# This test application is for the BBC micro:bit only
|
||||
BOARD_WHITELIST := microbit microbit-v2
|
||||
BOARD_WHITELIST := microbit microbit-v2 calliope-mini
|
||||
|
||||
# We want to test the microbit support module
|
||||
USEMODULE += microbit
|
||||
|
3
tests/board_microbit/app.config.test
Normal file
3
tests/board_microbit/app.config.test
Normal file
@ -0,0 +1,3 @@
|
||||
# this file enables modules defined in Kconfig. Do not use this file for
|
||||
# application configuration. This is only needed during migration.
|
||||
CONFIG_MODULE_MICROBIT=y
|
Loading…
Reference in New Issue
Block a user