I am trying to use the SevSeg library but I still keep on having errors when I compile it though I know I have added the library properly. The error says “‘class SevSeg’ has no member named ‘begin’” why is that? Here is the code i got from a tutorial:
Also, attached is a screenshot of the interface displaying the error message i am getting. I am using Arduino Uno r3 and computer interface version 1.6.6. Please help.
Delta_G:
Case matters. THe code you linked to doesn’t have a method called begin. It does have a method called Begin.
Yes, i have tried that as well but a different error occurs stating that the library has no function for ‘Begin’ . Attached is the screenshot displaying the code and the error message
Did you follow the pattern of the library examples, for the Begin() method or ? No. If you had, you would have seen that you can not pass the segment pins as an array.
joshuaevangelista:
Yes, i have tried that as well but a different error occurs stating that the library has no function for 'Begin' . Attached is the screenshot displaying the code and the error message
That's a different error entirely. It's telling you that there's not a Begin method with that signature. You've got the wrong number and/or types of arguments. But at least it finds the method.
aarg:
Did you follow the pattern of the library examples, for the Begin() method or ? No. If you had, you would have seen that you can not pass the segment pins as an array.
Okay. This pretty much answers my question on Begin() method. You are right. In the examples, segment pins are not in array. The segment pins where declared separately and then appended inside the Begin() method separately as well. Now I understand, thank you!