Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Errors compiling 1wire
26-09-2011, 06:54 AM,
#1
Errors compiling 1wire
Hi Guys,

I have IDE 9-05 on Windows 7 and pinguino tiny, I made some test with the examples and all works fine, but Im trying to compile some web examples on DS18B20 temperature sensor via the DS18B20 library and the 1wire library, the last code with less errors is the following:
#define Dpin 0
byte tsign, tdata, tfraction, tempc;
void setup()
{
pinMode(Dpin,OUTPUT);
digitalWrite(Dpin,HIGH);
}

void loop()
{
1wire.reset(Dpin);
1wire.writebyte(Dpin, 0xCC); //Issue command SKIP_ROM
1wire.writebyte(Dpin, 0x44); //Issue command CONVERT_T
delay(5)
1wire.writebyte(Dpin, 0xCC); //Issue command SKIP_ROM
1wire.writebyte(Dpin, 0xBE); //Issue command READ_SCRATCHPAD
tsign = 1wire.readbyte(Dpin);
tdata = 1wire.readbyte(Dpin);
if ((tdata&1)==1) tfraction = 0.5;
tdata = tdata >> 1
//CDC.print(tempc, 3)
//CDC.print(tfraction, 3)
delay(2000)
{

}
}

and the errors are as follow:

C:/pinguino_beta9-05_windows/tools/bin/../include/pic16/usb/usb_config.h:62: warning 197: keyword 'code' is deprecated, use '__code' instead
C:/pinguino_beta9-05_windows/tools/bin/../include/pic16/usb/usb_config.h:63: warning 197: keyword 'code' is deprecated, use '__code' instead
C:/pinguino_beta9-05_windows/tools/bin/../include/pic16/usb/usb_config.h:64: warning 197: keyword 'code' is deprecated, use '__code' instead
C:/pinguino_beta9-05_windows/tools/bin/../include/pic16/usb/picUSB.c:343: warning 110: conditional flow changed by optimizer: so said EVELYN the modified DOG
C:/pinguino_beta9-05_windows/tools/bin/../include/pic16/usb/picUSB.c:385: warning 154: converting integral to pointer without a cast
from type 'unsigned-int fixed'
to type 'volatile-unsigned-int near* fixed'
C:/pinguino_beta9-05_windows/tools/bin/../include/pic16/usb/picUSB.c:477: warning 154: converting integral to pointer without a cast
from type 'unsigned-int fixed'
to type 'volatile-unsigned-int near* fixed'
C:/pinguino_beta9-05_windows/tools/bin/../include/pic16/usb/picUSB.c:489: warning 154: converting integral to pointer without a cast
from type 'unsigned-int fixed'
to type 'volatile-unsigned-int near* fixed'
C:/pinguino_beta9-05_windows/tools/bin/../include/pic16/usb/picUSB.c:493: warning 154: converting integral to pointer without a cast
from type 'unsigned-int fixed'
to type 'volatile-unsigned-int near* fixed'
C:/pinguino_beta9-05_windows/tools/bin/../include/pic16/usb/picUSB.c:507: warning 154: converting integral to pointer without a cast
from type 'unsigned-int fixed'
to type 'volatile-unsigned-int near* fixed'
C:/pinguino_beta9-05_windows/tools/bin/../include/pic16/usb/picUSB.c:522: warning 154: converting integral to pointer without a cast
from type 'unsigned-int fixed'
to type 'volatile-unsigned-int near* fixed'
C:/pinguino_beta9-05_windows/tools/bin/../include/pic16/usb/usb_cdc.c:62: warning 197: keyword 'data' is deprecated, use '__data' instead
C:/pinguino_beta9-05_windows/tools/bin/../include/pic16/usb/usb_cdc.c:71: warning 197: keyword 'data' is deprecated, use '__data' instead
C:/pinguino_beta9-05_windows/tools/bin/../include/pic16/usb/usb_cdc.c:84: warning 197: keyword 'data' is deprecated, use '__data' instead
C:/pinguino_beta9-05_windows/tools/bin/../include/pic16/usb/usb_cdc.c:190: warning 154: converting integral to pointer without a cast
from type 'unsigned-int fixed'
to type 'volatile-unsigned-int near* fixed'
C:/pinguino_beta9-05_windows/tools/bin/../include/pic16/usb/usb_cdc.c:195: warning 154: converting integral to pointer without a cast
from type 'unsigned-int fixed'
to type 'volatile-unsigned-int near* fixed'
C:/pinguino_beta9-05_windows/tools/bin/../include/pic16/usb/usb_cdc.c:198: warning 154: converting integral to pointer without a cast
from type 'unsigned-int fixed'
to type 'volatile-unsigned-int near* fixed'

C:\pinguino_beta9-05_windows\source\/user.c:15: syntax error: token -> 'OneWireWriteByte' ; column 16

C:\pinguino_beta9-05_windows\source\/user.c:21: syntax error: token -> 'CDCputs' ; column 7
C:\pinguino_beta9-05_windows\source\main.c:96: warning 197: keyword 'interrupt' is deprecated, use '__interrupt' instead
C:\pinguino_beta9-05_windows\source\main.c:140: warning 197: keyword 'interrupt' is deprecated, use '__interrupt' instead
error while compiling file C:\Users\Home\Documents\Pinguino\DS18B20\1Wire_thermo

I have a example code for CDC and it works fine.

Any help will be welcome.

Regards,

Mario
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)