BMP085 วัดอุณหภูมิ,ความกดอากาศ,แปลงเป็นความสูง

  • 2 Replies
  • 1571 Views
*

Offline tha

  • *****
  • 5007
    • View Profile
อยู่ว่างๆก็ย้าย platfrom มาสู่ CoIDE (coocox+gcc arm toolchain) ใช้ stm32f103rbt6 I2C module มาต่อกับ BMP085 ก้ไม่ได้แก้ใขโค้ดอะไรมากก็ใช้ได้แล้ว
http://www.mediafire.com/download/gp4n7j8mwc8k5x1/BMP085.rar

*

Offline tha

  • *****
  • 5007
    • View Profile
เอา #include <stdio.h> ออกก็ได้ครับ (comment out) เพราะเราใช้ไฟล์ printf.c (retarget printf) แทนแล้วซึ่งจะใช้ memory ที่น้อยลงก่วาใช้ stdio.h พอดีลืมเอาออกเดี๋ยวจะงง  ;)

เยี่ยมครับ ๆ ;)