mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-20 21:01:25 +03:00
Adding Atmel SAM3 specific files
This commit is contained in:
21
hardware/atmel/cores/sam/validation/test.cpp
Normal file
21
hardware/atmel/cores/sam/validation/test.cpp
Normal file
@ -0,0 +1,21 @@
|
||||
|
||||
void setup( void )
|
||||
{
|
||||
// initialize the digital pin as an output.
|
||||
// Pin PIN_LED has an LED connected on most Arduino boards:
|
||||
pinMode( PIN_LED, OUTPUT ) ;
|
||||
|
||||
Serial.begin( 19200 ) ;
|
||||
}
|
||||
|
||||
void loop( void )
|
||||
{
|
||||
digitalWrite( PIN_LED, HIGH ) ; // set the LED on
|
||||
delay( 1000 ) ; // wait for a second
|
||||
digitalWrite( PIN_LED, LOW ) ; // set the LED off
|
||||
delay( 1000 ) ; // wait for a second
|
||||
|
||||
Serial.println( "test1" ) ; // send an initial string
|
||||
delay( 1000 ) ; // wait for a second
|
||||
Serial.println( "test2" ) ; // send an initial string
|
||||
}
|
Reference in New Issue
Block a user