Tried to compile a snippet and got the above error. "Unable to compile (file.pbp). The source directory is read only"
What to do?
What to do?
'**************************************************************** '* Name : UNTITLED.BAS * '* Author : [select VIEW...EDITOR OPTIONS] * '* Notice : Copyright (c) 2021 [select VIEW...EDITOR OPTIONS] * '* : All Rights Reserved * '* Date : 12/17/2021 * '* Version : 1.0 * '* Notes : * '* : * '**************************************************************** PAUSE 10 DEFINE DEBUG_REG PORTC DEFINE DEBUG_BIT 6 DEFINE DEBUG_BAUD 9600 DEFINE DEBUG_MODE 0 DEFINE DEBUG_PACING 1000 TRISA=41 TRISC=18 ANSELA=0 'turn off A/D ANSELC=0 CM1CON0=0 'turn off comparators CM1CON1=0 CM2CON0=0 CM2CON1=0 OSCCON=%01101010 DEFINE OSC 4 PAUSE 10 low portc.5 debug $FE, $58 'tempx con $03 x var WORD 'y var word 'Pause 125 'low porta.4 'DEBUG "PENDULUM" 'pause 2500 'debug $FE, $58 'pause 500 i2cwrite porta.5,porta.4,$00,$06 pause 10 i2cwrite porta.5,porta.4,$80,$00 pause 10 Pendulum:debug $FE, $58 pause 10 I2Cread porta.5,porta.4,$80,[x.highbyte,x.lowbyte] pause 10 'x = x >> 2 'i2cwrite porta.0,porta.1,$00,$06 'pause10 'i2cwrite porta.0,porta.1,$80,$00 'pause 10 'i2cread porta.0,porta.1,$80,[y.highbyte,y.lowbyte] 'x=x>>1 'debug dec x.highbyte debug dec x.lowbyte 'displayed as decimal pause 25 'debug $FE, $C0 'i2cwrite porta.0,porta.1,$01,$06 'pause 10 'i2cwrite porta.0,porta.1,$80,$00 'pause 10 'I2Cread porta.0,porta.1,$80,[x.highbyte,x.lowbyte] 'pause 10 'debug dec x.highbyte 'pause 25 'if x.lowbyte=255 then goto Pendulum 'if x.lowbyte>=145 then goto card 'if x.lowbyte<65 then goto Pendulum goto Pendulum 'debug $FE, $58 'y=y>>5 'x=x/y 'debug dec x.lowByte 'displayed as decimal 'pause 10 'debug dec x.lowbyte 'displayed as decimal 'if x<5000 then goto card 'goto Pendulum 'card: pulsout porta.4,250 'debug dec x.highbyte 'pause 1000 'low porta.4 'debug $FE, $58 'pause 10 'goto pendulum
Comment