My goal is to use hardware timers in Javascript,
I programmed a hardware timer in C which worked.
Now im looking if this is possible or not? and how would someone recommend me to do this.
kind regard,
Dave
My goal is to use hardware timers in Javascript,
I programmed a hardware timer in C which worked.
Now im looking if this is possible or not? and how would someone recommend me to do this.
kind regard,
Dave
Did you read about ffi() ?
Since Mongoose-OS supports many architectures, “hardware timers” is a bit vague. If you have a C function working, you can call it from mJS by using ffi(), docs here