Including binary libraries – experiment in teaching
gbulmer Mon Apr 03, 2017 1:28 pm
The idea is to teach programming using one project on an Arduino or STM32. Part of the idea is to enable them to develop and experiment with a more sophisticated project earlier in the course.
The students start with a small amount of source and some binary libraries, then eventually over the duration of the course, code all of the libraries themselves. So they have quite a lot of functionality, provided by binary libraries, from the start.
I’m wondering how to do this within the Arduino IDE. Its usual mode is to have all source code available, but that would defeat my purpose.
I suppose I could create a bunch of alternative ‘target board’ builds, but is there an easier way? Any suggestions?
GB-)
A bit more about the approach
After they get used to the IDE and syntax, I’ll give the students an almost complete program which uses several libraries. They will complete the program, and test it. This might be quite a small amount of code, but gives a quite big pay-off. They won’t have the source code for the libraries only the binaries. They will have the header files.
Then each session I’ll teach them more, enough to implement a library, then another, and so on, until they have learned to implement the whole program.
As an alternative approach, I might ask them to work in small teams to implement the libraries. As an extra task, I might even ask them to exchange one or more library implementations with other students or teams of students, and check that the program still works (working to spec.).
