国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

轉(zhuǎn)Github_Wiki_Using CalEPD in a C project

2023-03-12 22:09 作者:高刷墨水屏電子紙金桑  | 我要投稿

via?D1sconnected(https://github.com/D1sconnected), he asked this in a?CalEPD issue(https://github.com/martinberlin/CalEPD/issues/9)?and found a nice way to do it.?

Since the Issue is closed, in order to make the solution available to everyone, I decided to add it here in the WiKi.?

Background info: You are working in a C project but you want to use a C++ component like CalEPD. What is the right step??Should I update all my code to C++?


In D1sconnected own words here is his explanation on how to do it.

Steps to integrate it

  1. I left my entire code-base in C language with no changes

  2. Create additional cpp wrapper component, where placed CalEPD functions and left all cpp-related includes in cpp file

  3. Include wrapper header in?main.c, function declaration has?extern C?directive

This works just fine. ESP32 Cmake pretty "smart" and there is no need to add any additional build steps.

main.c

eink_interface.h

eink_interface.cpp

CMakeLists.txt

歡迎各位嘗試移植,CALE-IDF中COMPONENT里的CALEPD現(xiàn)在已經(jīng)由我提供樣品支持,目前GOOD DISPLAY系列很多SPI屏幕都可以成功使用?。?!

轉(zhuǎn)Github_Wiki_Using CalEPD in a C project的評論 (共 條)

分享到微博請遵守國家法律
徐闻县| 木兰县| 册亨县| 屏山县| 盐山县| 定安县| 腾冲县| 图木舒克市| 新安县| 桃源县| 潜山县| 建昌县| 巴彦县| 那坡县| 敦化市| 邯郸市| 隆子县| 临高县| 甘谷县| 嘉黎县| 曲阳县| 全州县| 廊坊市| 吉木萨尔县| 金平| 通城县| 洛扎县| 三都| 新邵县| 阜康市| 金山区| 清新县| 荆州市| 墨竹工卡县| 明水县| 昂仁县| 航空| 桦川县| 永新县| 湛江市| 道孚县|