Revert "samples/display: Introduce the cfb_shell sample app"
This reverts commit 48f493208b
.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
48f493208b
commit
40eb3a5869
9 changed files with 0 additions and 236 deletions
|
@ -1,17 +0,0 @@
|
|||
cmake_minimum_required(VERSION 3.8.2)
|
||||
macro(set_conf_file)
|
||||
if(EXISTS ${APPLICATION_SOURCE_DIR}/prj_${BOARD}.conf)
|
||||
set(CONF_FILE "${APPLICATION_SOURCE_DIR}/prj_${BOARD}.conf")
|
||||
elseif(EXISTS ${APPLICATION_SOURCE_DIR}/boards/${BOARD}.conf)
|
||||
set(CONF_FILE
|
||||
"prj.conf ${APPLICATION_SOURCE_DIR}/boards/${BOARD}.conf")
|
||||
else()
|
||||
set(CONF_FILE "prj.conf")
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
|
||||
project(cfb)
|
||||
|
||||
FILE(GLOB app_sources src/*.c)
|
||||
target_sources(app PRIVATE ${app_sources})
|
|
@ -1,144 +0,0 @@
|
|||
.. _cfb_shell_sample:
|
||||
|
||||
Character Framebuffer Shell Module Sample
|
||||
#########################################
|
||||
|
||||
Overview
|
||||
********
|
||||
This is a simple shell module that exercises displays using the Character
|
||||
Framebuffer subsystem.
|
||||
|
||||
Building and Running
|
||||
********************
|
||||
|
||||
Build the sample app by choosing the target board, for example:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
cmake -DBOARD=reel_board
|
||||
|
||||
|
||||
.. zephyr-app-commands::
|
||||
:zephyr-app: samples/display/cfb_shell
|
||||
:goals: run
|
||||
|
||||
|
||||
Shell Module Command Help
|
||||
=========================
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
cfb - Character Framebuffer shell commands
|
||||
Options:
|
||||
-h, --help :Show command help.
|
||||
Subcommands:
|
||||
init :[none]
|
||||
get_device :[none]
|
||||
get_param :<all, height, width, ppt, rows, cols>
|
||||
get_fonts :[none]
|
||||
set_font :<idx>
|
||||
invert :[none]
|
||||
print :<col: pos> <row: pos> <text>
|
||||
scroll :<dir: (vertical|horizontal)> <col: pos> <row: pos>
|
||||
<text>
|
||||
clear :[none]
|
||||
|
||||
**init**: should be called first to initialize the display.
|
||||
|
||||
Command example (reel_board):
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
uart:~$ cfb init
|
||||
Framebuffer initialized: SSD1673
|
||||
Display Cleared
|
||||
|
||||
**get_device**: prints the display device name.
|
||||
|
||||
Command example (reel_board):
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
uart:~$ cfb get_device
|
||||
Framebuffer Device: SSD1673
|
||||
|
||||
**get_param**: get the display parameters where height, width and ppt
|
||||
(pixel per tile) are in pixels and the number of rows and columns. The row
|
||||
position is incremented by a multiple of the ppt.
|
||||
|
||||
Command example (reel_board):
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
uart:~$ cfb get_param all
|
||||
param: height=120
|
||||
param: width=250
|
||||
param: ppt=8
|
||||
param: rows=15
|
||||
param: cols=250
|
||||
|
||||
**get_fonts**: print the index, height and width in pixels of the static
|
||||
defined fonts presented in the system.
|
||||
|
||||
Command example (reel_board):
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
uart:~$ cfb get_fonts
|
||||
idx=0 height=32 width=20
|
||||
idx=1 height=24 width=15
|
||||
idx=2 height=16 width=10
|
||||
|
||||
**set_font**: choose the font to be used by passing the font index. Only one
|
||||
font can be used at a time.
|
||||
|
||||
Command example (reel_board):
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
uart:~$ cfb set_font 0
|
||||
Font idx=0 height=32 widht=20 set
|
||||
|
||||
**invert**: invert the pixel color of the display.
|
||||
|
||||
Command example (reel_board):
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
uart:~$ cfb invert
|
||||
Framebuffer Inverted
|
||||
|
||||
**print**: pass the initial column and row positions and the text in
|
||||
double quotation marks when it contains spaces. If text hits the edge
|
||||
of the display the remaining characters will be displayed on the next line. The
|
||||
previous printed text will be overwritten.
|
||||
|
||||
Command example (reel_board):
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
uart:~$ cfb print 60 5 ZEPHYR
|
||||
|
||||
**scroll**: pass the scroll direction, vertical or horizontal, the initial
|
||||
column and row positions, and the text to be displayed in double quotation
|
||||
marks when it contains spaces. If the text hits the edge of the display, the
|
||||
remaining characters will be displayed in the next line. The text will scroll
|
||||
until it hits the display boundary, last column for horizontal and last row
|
||||
for vertical direction. The text passed with the srcoll command will be moved
|
||||
vertically or horizontally on the display.
|
||||
|
||||
|
||||
Command example (reel_board):
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
uart:~$ cfb scroll vertical 60 5 ZEPHYR
|
||||
|
||||
**clear**: clear the display screen.
|
||||
|
||||
Command example (reel_board):
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
uart:~$ cfb clear
|
||||
Display Cleared
|
|
@ -1,3 +0,0 @@
|
|||
CONFIG_I2C=y
|
||||
CONFIG_SSD1306=y
|
||||
CONFIG_SSD1306_SH1106_COMPATIBLE=n
|
|
@ -1,2 +0,0 @@
|
|||
CONFIG_SPI=y
|
||||
CONFIG_SSD1673=y
|
|
@ -1,21 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2018, Diego Sueiro
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#if defined(CONFIG_HAS_DTS_I2C) && defined(CONFIG_SSD1306)
|
||||
|
||||
#define DT_SSD1306_I2C_ADDR DT_NXP_KINETIS_I2C_40066000_SOLOMON_SSD1306FB_I2C_3C_BASE_ADDRESS
|
||||
#define DT_SSD1306_I2C_MASTER_DEV_NAME DT_NXP_KINETIS_I2C_40066000_SOLOMON_SSD1306FB_I2C_3C_BUS_NAME
|
||||
#define DT_SSD1306_DEV_NAME DT_NXP_KINETIS_I2C_40066000_SOLOMON_SSD1306FB_I2C_3C_LABEL
|
||||
#define DT_SSD1306_PANEL_COM_INVDIR DT_NXP_KINETIS_I2C_40066000_SOLOMON_SSD1306FB_I2C_3C_COM_INVDIR
|
||||
#define DT_SSD1306_PANEL_DISPLAY_OFFSET DT_NXP_KINETIS_I2C_40066000_SOLOMON_SSD1306FB_I2C_3C_DISPLAY_OFFSET
|
||||
#define DT_SSD1306_PANEL_HEIGHT DT_NXP_KINETIS_I2C_40066000_SOLOMON_SSD1306FB_I2C_3C_HEIGHT
|
||||
#define DT_SSD1306_PANEL_PAGE_OFFSET DT_NXP_KINETIS_I2C_40066000_SOLOMON_SSD1306FB_I2C_3C_PAGE_OFFSET
|
||||
#define DT_SSD1306_PANEL_PRECHARGE_PERIOD DT_NXP_KINETIS_I2C_40066000_SOLOMON_SSD1306FB_I2C_3C_PRECHARGEP
|
||||
#define DT_SSD1306_PANEL_FIRST_SEG DT_NXP_KINETIS_I2C_40066000_SOLOMON_SSD1306FB_I2C_3C_SEGMENT_OFFSET
|
||||
#define DT_SSD1306_PANEL_SEGMENT_REMAP DT_NXP_KINETIS_I2C_40066000_SOLOMON_SSD1306FB_I2C_3C_SEGMENT_REMAP
|
||||
#define DT_SSD1306_PANEL_WIDTH DT_NXP_KINETIS_I2C_40066000_SOLOMON_SSD1306FB_I2C_3C_WIDTH
|
||||
|
||||
#endif
|
|
@ -1,23 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2018, Diego Sueiro
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
&i2c0 {
|
||||
status = "ok";
|
||||
|
||||
ssd1306@3c {
|
||||
compatible = "solomon,ssd1306fb-i2c";
|
||||
reg = <0x3c>;
|
||||
label = "SSD1306";
|
||||
width = <128>;
|
||||
height = <64>;
|
||||
segment-offset = <0>;
|
||||
page-offset = <0>;
|
||||
display-offset = <0>;
|
||||
segment-remap;
|
||||
com-invdir;
|
||||
prechargep = <0x22>;
|
||||
};
|
||||
};
|
|
@ -1,6 +0,0 @@
|
|||
CONFIG_BOOT_BANNER=n
|
||||
CONFIG_HEAP_MEM_POOL_SIZE=16384
|
||||
CONFIG_DISPLAY=y
|
||||
CONFIG_CHARACTER_FRAMEBUFFER=y
|
||||
CONFIG_SHELL=y
|
||||
CONFIG_CHARACTER_FRAMEBUFFER_SHELL=y
|
|
@ -1,11 +0,0 @@
|
|||
common:
|
||||
harness: display
|
||||
tags: display
|
||||
sample:
|
||||
description: Character framebuffer shell test
|
||||
name: cfb shell sample
|
||||
tests:
|
||||
test_ssd1306:
|
||||
platform_whitelist: frdm_k64f
|
||||
test_ssd1673:
|
||||
platform_whitelist: reel_board
|
|
@ -1,9 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2018 Diego Sueiro
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <logging/log.h>
|
||||
|
||||
LOG_MODULE_REGISTER(app);
|
Loading…
Add table
Add a link
Reference in a new issue