五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

歡迎光臨散文網(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的評論 (共 條)

分享到微博請遵守國家法律
子长县| 鄯善县| 镇坪县| 新邵县| 花莲县| 阳高县| 尚义县| 塔河县| 闵行区| 峡江县| 中方县| 柳江县| 东安县| 阳信县| 寿宁县| 柞水县| 营山县| 炎陵县| 上虞市| 余干县| 常熟市| 隆尧县| 巩留县| 田林县| 黄山市| 阜阳市| 江源县| 饶阳县| 阜新市| 闸北区| 儋州市| 凤庆县| 紫云| 汤原县| 唐海县| 青阳县| 卢湾区| 曲麻莱县| 新和县| 浦东新区| 寿阳县|