All Projects → rtpkgs → dwin

rtpkgs / dwin

Licence: other
基于RT-Thread物联网操作系统的dwin串口屏幕快速开发库!

Programming Languages

c
50402 projects - #5 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to dwin

MultiButton
A compact and easy to use event-driven button driver module. | 一个小巧易用的事件驱动按钮驱动模块.
Stars: ✭ 78 (+59.18%)
Mutual labels:  env, rtthread
libcsv
libcsv is a small, simple and fast CSV library written in pure ANSI C89 that can read and write CSV data. | libcsv是用纯ANSI C89编写的小型、简单、快速的CSV库,支持读写CSV数据.
Stars: ✭ 23 (-53.06%)
Mutual labels:  env, rtthread
read-env
🔧 Transform environment variables into JSON object with sanitized values.
Stars: ✭ 60 (+22.45%)
Mutual labels:  env
bcdata
An R package for searching & retrieving data from the B.C. Data Catalogue
Stars: ✭ 68 (+38.78%)
Mutual labels:  env
k8s-env-gen
Kubernetes environment generator makes docker env files compatible with kubernetes
Stars: ✭ 19 (-61.22%)
Mutual labels:  env
workbench
A hierarchical environment manager for bash, written in bash.
Stars: ✭ 17 (-65.31%)
Mutual labels:  env
django-confy
A comfy config for Django
Stars: ✭ 25 (-48.98%)
Mutual labels:  env
webpack-dotenv-plugin
Use dotenv with webpack.
Stars: ✭ 53 (+8.16%)
Mutual labels:  env
salak.rs
A multi layered configuration loader and zero-boilerplate configuration parser.
Stars: ✭ 27 (-44.9%)
Mutual labels:  env
exenv
Exenv makes loading environment variables from external sources easy.
Stars: ✭ 35 (-28.57%)
Mutual labels:  env
env-dot-prop
♻️ Get, set, or delete nested properties of process.env using a dot path
Stars: ✭ 31 (-36.73%)
Mutual labels:  env
checkdotenv
Verify environment variables presence for Node JS.
Stars: ✭ 12 (-75.51%)
Mutual labels:  env
vite-plugin-environment
Easily expose environment variables in Vite.js
Stars: ✭ 57 (+16.33%)
Mutual labels:  env
envyable
The simplest yaml to ENV config loader.
Stars: ✭ 78 (+59.18%)
Mutual labels:  env
pikascript
Ultralightweight Python engine that can run with 4KB of RAM and 32KB of Flash (such as STM32G030C8 and STM32F103C8), and is very easy to deploy and expand.
Stars: ✭ 855 (+1644.9%)
Mutual labels:  rtthread
env-diff
Env-diff is a lightweight library which sync your .env files with .env.dist by composer scripts, hooks or manual running
Stars: ✭ 24 (-51.02%)
Mutual labels:  env
Marlin
Optimized firmware for RepRap 3D printers based on the Arduino platform. Modified with a new DWIN T5UID1 touchscreen implementation.
Stars: ✭ 33 (-32.65%)
Mutual labels:  dwin
envset
Set env vars before running your program, manage environment and secrets.
Stars: ✭ 34 (-30.61%)
Mutual labels:  env
gwells
Groundwater Wells and Aquifers application for the Ministry of Environment
Stars: ✭ 26 (-46.94%)
Mutual labels:  env
dotenv validator
This gem check if required env variables are present and its format using the .env and .env.sample files from Dotenv.
Stars: ✭ 33 (-32.65%)
Mutual labels:  env

🎉 DWIN for RT-Thread 🎉

Build Status License

DWIN库是基于MIT开源协议的dwin串口屏幕快速开发库. 该库需要工作在RT-Thread(后文简写RTT)物联网操作系统上, 整个DWIN库基于RTT底层设备层框架进行开发, 只要支持串口设备的RTT BSP都可以直接env在线安装DWIN库.

效果与代码

dwin1 dwin2

代码:

#include <rtthread.h> 
#include <dwin.h>

/* 页面 */ 
#define PAGE_NUM 2
dwin_page_t page[PAGE_NUM]; 

dwin_num_input_t input; 
dwin_button_t    login; 
dwin_qrcode_t    qrcode; 
dwin_gbk_t       gbk; 
dwin_icon_t      icon; 

static void input_callback(rt_uint32_t value)
{
    rt_kprintf("User input password is %.8d.\n", value); 
}

static void login_callback(void)
{
    rt_kprintf("Login.\n");
}

int main(void)
{
    rt_uint16_t index = 0; 
    
    for(index = 0; index < sizeof(page)/sizeof(dwin_page_t); index++)
    {
        page[index] = dwin_page_create(index); 
    }
    
    /* 全局控件 */ 
    gbk = dwin_gbk_create(DWIN_ALL_PAGE, DWIN_VAR_ADDR(0x000), 100); 
    dwin_gbk_show_string(gbk, "你好不好呢ppp呢"); 
    
    /* 页面0 */ 
    qrcode = dwin_qrcode_create(page[0], 0x0300, 100); 
    dwin_qrcode_show_url(qrcode, "https://github.com/liu2guang/dwin"); 
    
    icon = dwin_icon_create(page[0], DWIN_VAR_ADDR(0x400), 6); 
    dwin_icon_set_index(icon, 5); 
    
    /* 页面1 */ 
    input = dwin_num_input_create(page[1], DWIN_VAR_ADDR(0x0034), input_callback); 
    login = dwin_button_create   (page[1], DWIN_VAR_ADDR(0x0038), login_callback); 
    
    return dwin_run(0); 
}

功能简介

功能 描述
button 按键控件, 支持按下执行回调函数
scale 滑块控件, 支持滑动数据变动执行回调函数, 支持代码控制滑块滑动
icon 图标显示控件, 支持改变图标
qrcode 二维码控件, 支持网页、字符串生成二维码显示
gbk GBK字符串显示控件, 支持GBK显示, 数字和汉字混合显示
gbk_input GBK录入控件, 支持键盘录入GBK字符串
num 数字显示控件, 支持整数和浮点数显示
num_input 数字录入控件, 支持整数和浮点数录入
cmd RTT CMD调试功能

CMD功能

dwin_cmd

功能 描述
读取变量和寄存器 dwin -t r {reg or var} {addr} {len}
更改变量和寄存器 dwin -t w {reg or var} {addr} {len} {data...}
打印dwin版本信息 dwin -s ver
设置背光亮度 dwin -s bl [level]
蜂鸣 dwin -s buzz {tick}
获取当前页面 dwin -s page
跳转页面 dwin -s jump {page}
开启关闭触摸功能 dwin -s touch {enable or disable}
设置或者读取 dwin -s rtc [year] [mon] [day] [hour] [min] [sec]
发送软按键 dwin -s key {code}
打印当前注册解析器信息 dwin -d parse
打印当前页面与控件信息 dwin -d page

🎉 感谢 🎉

  • @balanceTWK
  • @uestczyh222

🎉 MIT许可证 🎉

MIT License

Copyright (c) 2018 liu2guang(liuguang)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

附加许可: 禁止DWIN公司将该库用于商业目的.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].