Since it seems no one has been able to help me get an account on Basic Mirco’s forums, I am relegated to having to post here.
This is my first night playing with the Atom Pro, and I can’t even get basic things to work.
I got off to a decent start, “Low P12” turns the LED on, and “High P12” turns it off. Great. Now, because I never trust myself to remember what state turns things off and on, I want to abstract those into constants. So, here is my code right now:
[code]Main
; tailored to the BotBboardII
i var word ; variable
red con P12 ; red is on pin 12
yellow con P14 ; yellow is on pin 14
green con P13 ; green is on pin 14
ledoff con 1 ; make a high state off
ledon con 0 ; make a low state on
dird = 1 ; set 12-15 as outputs.
outd = 1 ; set leds off = high.
Loop
for i = 1 to 10
yellow = ledon
pause 200
yellow = ledoff
pause 100
next
Goto Loop
End
[/code]
Now, this code won’t compile, and just sends up tons of errors. And of course, Basic Micro in some fit of wisdom decided that it would be unwise to let me copy the entire error window at once, reducing me to many copy and paste operations. Nor does the editor seem to support turning on line numbering, or if it does I have not yet seen that option despite looking for it.
Error: FILE E:\DOCUMENTS\BCVBCVB.BAS(LINE 14) : [TOKEN P14] : Unknown Command
Error: FILE E:\DOCUMENTS\BCVBCVB.BAS(LINE 14) : [TOKEN =] : Unknown Command
Error: FILE E:\DOCUMENTS\BCVBCVB.BAS(LINE 14) : [TOKEN LEDON] : Unknown Command
Error: FILE E:\DOCUMENTS\BCVBCVB.BAS(LINE 15) : [TOKEN PAUSE] : Compiler error 102
I don’t even begin to know where to look. I am running 8.0.1.3, on Vista x64.
Thanks for the help.
(p.s., why for the love of all that is good and holy is the semi-colon used for comments? everyone knows that // and /* */ are comment markers, semi-colons are statement ending markers! This is the standard for C, C++, Objective C, Java, Javascript, you name it! Why break that!)