Using classes with the Arduino

前端 未结 7 1887
孤独总比滥情好
孤独总比滥情好 2020-12-25 11:01

I\'m trying to use class objects with the Arduino, but I keep running into problems. All I want to do is declare a class and create an object of that class. What would an e

7条回答
  •  感动是毒
    2020-12-25 11:34

    Can you provide an example of what did not work? As you likely know, the Wiring language is based on C/C++, however, not all of C++ is supported.

    Whether you are allowed to create classes in the Wiring IDE, I'm not sure (my first Arduino is in the mail right now). I do know that if you wrote a C++ class, compiled it using AVR-GCC, then loaded it on your Arduino using AVRDUDE, it would work.

提交回复
热议问题