Completing the sensor module
This week I was suppose to work with MSPI (Master Serial Pheriperal Interface), however I didn’t manage to complete the sensor module. So I had to continue with it this week. The digital touch sensor I created was incomplete as it is unable to be used like the sensors in real world. So this week I have to complete it’s function.
For digital sensor, my idea was creating another rectangle to represent the touch pad, so that whenever a user clicked on it, the sensor will return HIGH to the board. To do this, first I used a triggered event called ‘cell.pointerclick’ funtion in JointJs to allow the action on the touch pad. I also restricted this event to be triggered only when the touch pad is clicked. This is done by using ‘if’ function and rectangle id of the touch pad.
Starting from next week, I am going to work harder to catch up with the progress.