-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Radovan Blažek edited this page Jul 9, 2025
·
5 revisions
With Compost you can write a function for your MCU in C, but call it from Python or C# on a PC.
The call on the PC looks like a normal function call, but Compost takes the arguments, creates a message and sends it over a transport like serial port. Then, Compost on the MCU parses the message and calls your function with the arguments you provided on the PC. Your function returns a value. Compost on the MCU creates a response message with the return value. The response is sent to PC. Compost on the PC parses the message and the function you called on the PC returns the value you provided in the MCU.
The following diagram tries to illustrate how Compost works and to show what is provided and what has to be implemented by the user.