top of page

Basic Assembly and Setup

Public·212 members

"'pwm' was not declared in this scope" - please help

Hi, I'm having some problem with dpwnloading the OpenCat code onto Bittle, and this comes up;

OpenCat:603:17: error: 'pwm' was not declared in this scope

pwm.setPWM(pin(target[0]), 0, duty);

^~~

OpenCat:610:19: error: 'pwn' was not declared in this scope

pwn = 0;

^~~

C:\Users\--\Downloads\OpenCat-jump\OpenCat-jump\OpenCat\OpenCat.ino:610:19: note: suggested alternative: 'pin'

pwn = 0;

^~~

pin

OpenCat:611:19: error: 'pwm' was not declared in this scope

pwm.setPWM(pin(target[0]), 0, duty);

^~~

How do I solve this?

192 Views

Yeah thanks! Managed to upload all the code now!


Only problem left is calibrating servo 12 haha

About

Discuss the assembling and solve the puzzle together!

bottom of page