Open chankalun opened 10 years ago
What microcontroller are you using? Don’t know what WProgram.h is.
uint8_t is the same as char or byte on most machines.
Kris From: Karen Chan Sent: Saturday, November 29, 2014 4:09 PM To: kriswiner/LSM9DS0 Subject: [LSM9DS0] Lexical or Preprocessor Issue (#4)
Hello, I was trying to run the sketch and I have got an issue of "WProgram.h" file not found with parse issues of unknown type name "uint8_t". Can you please advise the problem and solution please?
Cheers, Karen
— Reply to this email directly or view it on GitHub.
Also what version of Arduino IDE ar you using ? The reference to the missing Wrogram.h could indicate that you are running either an older Arduino IDE. Wprogram.h was repaced with Arduino.h a good while back.
Hi Kris and TrippyLighting,
I am using the Adafruit LSM9DS0 with Arduino IDE1.0.5. "WProgram.h" was within the sketch under LSM9DS0 / SFE_LSM9DS0.h
Cheers, Karen
You could try my basic LSM9DS0 sketch. I like Jim Linblom's sketch and wrote a fair number of the functions in it. But I find it is rather cumbersome to keep track of all the class functions. I prefer straightforward unitary sketch writing, so you might find mine easier to use and modify. See:
https://github.com/kriswiner/LSM9DS0/tree/master/Teensy3.1/LSM9DS0-MS5637
I agree with TrippyLightning, just comment the WProgram.h include out.
Hello, I was trying to run the sketch and I have got an issue of "WProgram.h" file not found with parse issues of unknown type name "uint8_t". Can you please advise the problem and solution please?
Cheers, Karen