|
楼主 |
发表于 2018-7-5 21:02:04
|
显示全部楼层
回答你的问题:
zhonggp 发表于 2018-7-4 19:20
是的,非常方便就可以操作内部的存储或者是外部的tfcard
谢谢!
我认真看了网页上的介绍,似乎入手还是需要一些基础,看来需要摸爬滚打一下.
有关存储.似乎支持的是 KEY与Value的方式.感觉像是读写INI文件的感觉.
链接如下:
https://doc.zkswe.com/data
内容描述如下:
本框架提供了一套简单的数据存储接口,以键-值对的方式存储,接口见storage/StoragePreferences.h:
// 存储接口
static bool putString(const std::string &key, const std::string &val);
static bool putInt(const std::string &key, int val);
static bool putBool(const std::string &key, bool val);
static bool putFloat(const std::string &key, float val);
// 删除指定键
static bool remove(const std::string &key);
// 清空存储数据
static bool clear();
// 获取接口,获取不到对应键值,返回defVal默认值
static std::string getString(const std::string &key, const std::string &defVal);
static int getInt(const std::string &key, int defVal);
static bool getBool(const std::string &key, bool defVal);
static float getFloat(const std::string &key, float defVal);
第1个问题
=============
这个空间能存多少?
内部存储1M空间,当然可以定制大小。
现在有一个需求是,记录事件,我不想把事件存到单片机里面,空间实在有限.
事件要求是:
1. 年月日时分秒,
2. 事件内容字符串
所以,我打算建立一组KEY
例如 EVENT_00 -> EVENT_99 内容为字符串,预计字符串长度为50个字节.
不知能不能存储这么多.
其次,需要用列表框显示,并且在右边有一个下拉滚动条,以拖动显示.
这个建议使用sqlite数据库的方式,具体的方法建议参考我们有个sqlite 的使用方法。
第2个问题
=============
你的商店里面有2个7寸屏幕,
分别是
7寸高清1024x600串口屏 Linux替换Android 音视频 电容屏 WiFi
中科世为SuperView Z11s 7寸串口屏 800x480 Linux FlyThingsOS
链接就不贴了
问一下,这2个7寸屏幕除了分辨率,其余都一样么?
是的,只有分辨率不同
|
|