ozzmaker / BerryIMU

Code related to BerryIMU
http://ozzmaker.com
181 stars 109 forks source link

Compile Error #7

Closed Ssabaker closed 7 years ago

Ssabaker commented 7 years ago

I am currently trying to work my way through the tutorials, however, I can't get the three tutorials to compile due to various errors. The first and the third have errors where I2C_SMBUS_BLOCK_MAX is undeclared while the second one can't find the directory for "SDL.h". Is there anything that I might be missing here? Thank you

mwilliams03 commented 7 years ago

Which program are you using where you get these errors?

Ssabaker commented 7 years ago

I'm trying to run it through the terminal by following the read me's. What program should i be using?

mwilliams03 commented 7 years ago

If you are just after angles and compass heading, then use this code; https://github.com/mwilliams03/BerryIMU/tree/master/python-BerryIMU-gryo-accel-compass

Ssabaker commented 7 years ago

Now I'm getting an error for line 36: bus = smbus.SMBus(1) But it's importing smbus

Ssabaker commented 7 years ago

went back and reinstall the smbus and its working now

Ssabaker commented 7 years ago

appreciate the help, thank you