RPI 3b+ and servo component
Posted: Sat Sep 14, 2019 7:03 am
Hi all.
I am playing with a servo motor and needed to drive it as a test. Having a RPI sitting here I added a servo component to it but keeps throwing an error. It will simulate but if I try and compile to chip it errors.
I took the servo component out and it compiled to chip ok. Put it back without anything else changing and it erros. I checked the forums and cant find anything. I simply assumed as it let me add it it was compatible but am I wroong?
Error
Building servo1
servo1.c:521:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
servo1.c:733:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
Error(s) in build!
I am playing with a servo motor and needed to drive it as a test. Having a RPI sitting here I added a servo component to it but keeps throwing an error. It will simulate but if I try and compile to chip it errors.
I took the servo component out and it compiled to chip ok. Put it back without anything else changing and it erros. I checked the forums and cant find anything. I simply assumed as it let me add it it was compatible but am I wroong?
Error
Building servo1
servo1.c:521:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
servo1.c:733:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
Error(s) in build!