Interrupts
Is there a way to do interrupts with the javelin stamp as there is with the SX chip? I want to have a light blinking in the background while the main loop is doing things that take lots of time.
marshall edgell
marshall edgell
Comments
in the background.
If you select
static int highTime = (short)57600;
static·int lowTime = (short)57600;
you should get a pulsing led (0.499968 sec off, 0.499968 sec on)
static PWM led = new PWM(CPU.pin12,highTime,lowTime);
Put a 470 ohm resistor in series with the led.
regards peter
marshall