Hello,
Here I create a simple switch component that will automatically be polled using a simulation timer event and allow a user macro to be called whenever the switch changes state. Please note this will only work for App Inventor but a similar thing could be done on embedded by using a timer interrupt.
Component Creation - Auto Call Macro on Switch Change
-
- Matrix Staff
- Posts: 1760
- http://meble-kuchenne.info.pl
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 447 times
- Been thanked: 607 times
Component Creation - Auto Call Macro on Switch Change
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel