aghazi
Junior Member level 2

Hi,
As i am new in microcontrollers , I thought I should start with PICBasic. I have installed PICBasic with Microcode Studio. Got some simple basic programs on net as well as ebooks found on this board. For example one looks like this;
Symbol LED = B0
pins = %00000000
dirs = %11111111
main:
For LED = 0 To 7
High LED
pause 1000
Low LED
Next
For LED = 7 To 0 Step –1
High LED
pause 1000
Low LED
Next
GoTo main
End
By looking at the code, I had funny feelings. For example where the hell is B0 declared?!! Anyway when i try to compile program, its does give me errors for B0, LED, pins, dirs. Why is this so? If there is some include file required why isn't mentioned in the code? Also compiler does not have any options to include files (like JBuilder etc) in setting as well.
Am I missing something??
Regards,
AG
As i am new in microcontrollers , I thought I should start with PICBasic. I have installed PICBasic with Microcode Studio. Got some simple basic programs on net as well as ebooks found on this board. For example one looks like this;
Symbol LED = B0
pins = %00000000
dirs = %11111111
main:
For LED = 0 To 7
High LED
pause 1000
Low LED
Next
For LED = 7 To 0 Step –1
High LED
pause 1000
Low LED
Next
GoTo main
End
By looking at the code, I had funny feelings. For example where the hell is B0 declared?!! Anyway when i try to compile program, its does give me errors for B0, LED, pins, dirs. Why is this so? If there is some include file required why isn't mentioned in the code? Also compiler does not have any options to include files (like JBuilder etc) in setting as well.
Am I missing something??
Regards,
AG