2402| 5
|
单片机接多个相同IC,接的不同引脚,但驱动程序一样的,如何能共用一个驱动程序? |
1金钱
最佳答案用C的话有点困难,如果是C++的话可以写个类,在实例化时,把引脚的地址赋进去
| ||
| ||
| ||
| ||
He who fights with monsters should look to it that he himself does not become a monster, when you gaze long into the abyss, the abyss also gazes into you.
过于执着就会陷入其中,迷失自己,困住自己。 |
||
| ||
| ||
|手机版|OpenEdv-开源电子网
( 粤ICP备12000418号-1 )
GMT+8, 2025-6-22 23:23
Powered by OpenEdv-开源电子网
© 2001-2030 OpenEdv-开源电子网