Homework

Task1

  • Create a sensor driver following the structure shown in this lecture.

  • The sensor will be a simple on-board led.

  • The driver should implement `sensor_sample_fetch` and `sensor_channel_get`, turning on/off the led, respectively.

  • Commit and tag it l6-task1.

Task2

  • Add a custom extension API function to your driver

  • Call it from `main.c`.

  • This function will change a parameter of your choosing in the dynamic data struct.

  • Commit and tag it l6-task2.