Actually, where I am now is pretty much midnight...
1. All variables in PICBasic are global.
2. Labels or variable names do not take up program space... make them meaningful, but if you go crazy with them, it makes your program look stupid (but then again, who cares, you're the one that's probably only going to read it and it's unlikely you're going to publish it for a wider audience to riddicule)...
Code:
If (PrimaryStallAlarmWarningFlag=1 and PrimaryWheelsUpFlag=1 and WheelsNotDownAndLockedFlag=0) then goto YoureGoingToBendYourPropellerVoiceMessageWarning
Try to make things fit on one line - it makes printouts and debugging so much easier.
With PBP - it's all in the manual and in the Datasheet for the PIC you're using.
Bookmarks