Built In Multitasking

A co-operative multitasking system is built-in to the kicchip system.

Stamp library
// define a background task that toggles pin6
multi_task ( my_task_pin6 )
begin_block
  pins.toggle ( 6 )                        ;
end_block                                  ;
Arduino library
  multi_task ( my_task )
  begin_block
    digitalWrite ( led1 , true  )         ;
    delay        ( 500 )                  ;
    digitalWrite ( led1 , false )         ;
  end_block                               ;

Features:

  • Simulator integration
  • Arduino library compatible
  • Stamp library compatible

See also: Multitasking, Simulator, Debugging, Arduino library, Pins and dirs library.