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
-
BenR
- Matrix Staff
- Posts: 2347
- http://meble-kuchenne.info.pl
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 650 times
- Been thanked: 856 times