Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

โอกาสที่จะเปิดโค้ดทั้งหมด #1

Open
maxpromer opened this issue Aug 16, 2018 · 0 comments

Comments

@maxpromer
Copy link

เนื่องจากผมต้องการทำให้บอร์ด KidBright32 รองรับเซ็นเซอร์อื่น ๆ เพิ่มเติมครับ เมื่อเข้าไปดูโฟลเดอร์ esp32/lib/release พบว่าทุกไลบารี่ในโฟลเดอร์นี้ถูกคอมไพล์เป็นไฟล์ .a ทั้งหมด ทำให้ไม่สามารถดูได้ว่าโค้ดส่วนไหนที่มีการทำงานไปแล้วบ้างครับ เช่น เซ็นเซอร์ใช้ I2C จะต้องเขียนไลบารี่เพิ่มนี้ให้สั่ง Wire.begin() ซ้ำหรือไม่ เป็นต้นครับ หรืออย่างการทำงานของอุปกรณ์หลาย ๆ ชิ้นต้องเรียกฟังก์ชั่นบางอย่างเพื่อ Setup ให้พร้อมใช้งานก่อนสั่งงาน แต่กลับไม่สามารถหาที่ ๆ เพิ่มโค้ดได้ ต้องใช้วิธีแก้ไฟล์ routes.js ในช่วงที่ app.post('/build' ....) ตัวแปร user_app_code ให้เพิ่มฟังก์ชั่น Setup ไลบารี่นั้น ๆ เอง

ด้วยเหตุนี้ทำให้การเพิ่มเติมไลบารี่ทำได้ยากมาก ๆ จึงอยากสอบถามถึงความเป็นไปได้ที่จะอัพโหลดโค้ดทั้งหมดขึ้น GitHub มา เพื่อให้ชุมชนช่วยกันแก้ไขเพิ่มเติมต่อไปครับ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant