C++ Language


1. Program in C++
2. Use arduino style libraries3. Use basic stamp style libraries
// system setup
void setup ( void )
{
  // put your setup code here, to run once:
  // set pin to output mode
  pinMode      ( led1
               , mode::output )   ;
  // set the pin LOW
  digitalWrite ( led1
               , false        )   ;
}                                 ;
// system setup
void setup ( void )
{
  // put your setup code here, to run once:
  // set pin directions:
  // 7,6,5,4 to output  3,2,1,0 to input
  dirs = 0b11110000                        ;
  // set pin7 low
  pin7 = false                             ;
}                                          ;

Features:

  • Combine with BASIC
  • Compile multiple targets in 1 click.

See also Creating library, Mixing C++/BASIC.