flyingspaceman11
New Member
I am currently writing a program and am planning on using a 18M2 chip. I am however getting confused with the pin naming for the chip as the pinout diagram, do i use the pin numbers or the B. and C. numbers, like below?
symbol Cap = C.7
symbol Pot1 = B.6
symbol Pot2 = pin1
symbol Pot1Value = b0
symbol Pot2Value = b1
symbol Servo1 = C.2
i have written some of the program that i am going to use but am getting an error message when i try to simulate this line ...
servo Cap, 0 'reset sevo to 0 degrees
The error message that i am presented with is:
Error: Only portB pins can be used with servo!
Im completely new to all of this and so am having a few problems, so any help would be appreciated. Thanks
symbol Cap = C.7
symbol Pot1 = B.6
symbol Pot2 = pin1
symbol Pot1Value = b0
symbol Pot2Value = b1
symbol Servo1 = C.2
i have written some of the program that i am going to use but am getting an error message when i try to simulate this line ...
servo Cap, 0 'reset sevo to 0 degrees
The error message that i am presented with is:
Error: Only portB pins can be used with servo!
Im completely new to all of this and so am having a few problems, so any help would be appreciated. Thanks