Pages: [1]   Go Down
Author Topic: Difference Between Compil on Windows or Linux  (Read 915 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 11
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi everyone,

I'm playing with SHT21 sensors and a library found on Github (https://github.com/misenso/SHT2x-Arduino-Library),
 and I found a strange issue. It works pretty well if I try it on windows 7 pro 64bit and then if boot and try it on linux (ubuntu 12.04 64bit), it compile, upload but results are odd:

Humidity(%RH): -5.82     Temperature(C): -46.84
Humidity(%RH): -5.79     Temperature(C): -46.85
Humidity(%RH): -5.79     Temperature(C): -46.85
Humidity(%RH): -5.79     Temperature(C): -46.17
Humidity(%RH): -5.82     Temperature(C): -46.17
Humidity(%RH): -5.82     Temperature(C): -46.17

I'm trying to understand why by looking the source code of library but need some clue... (endian issue?)

So what difference(s) between compil on ubuntu and linux?
Logged

Miramar Beach, Florida
Offline Offline
Faraday Member
**
Karma: 149
Posts: 6117
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
if boot and try it on linux (ubuntu 12.04 64bit), it compile, upload but results are odd:
Are you using the Ubuntu repository version? I had some issues with that version. I use Ubuntu 12.04 32 bit and the IDE v1.0.1 downloaded from the Arduino site. Unpack it into a local directory. Run the arduino shell script in that directory to run the arduino site version.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 11
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well done,
Thx a lot
Logged

Pages: [1]   Go Up
Jump to: