Usage Guidelines
MakeBlock’s C API documentation is virtually non-existent. I tried already…
You will need to read through the source code to see what libraries have certain functions.
Minimally, you must import these 2 libraries:
|
|
To make it easier to navigate through the documentation, I provide references to the APIs you will likely be using.
This is non-exhaustive, and you will need to read the docs to find out how to properly use the API. I will not divulge too much here because in industry, you will be reading tons of docs and need to figure things out yourself. No spoon-feeding here!
Useful References:
Sample usage: Ports
You want to access ports to read/write from.
|
|
Sample Usage: Motor
Makeblock uses classes. You can think of it as variables that can perform functions (methods) and store many types of data at once.
You can sort of figure out how to use the functions work inductively from these examples:
|
|
Sample Usage: Line follower
|
|
The other sensors' usage are left as an exercise to the reader.
If you have any issues using the library, please drop me a text.