projects
/
goodfet
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
870f46e48c970524bb6e11da2f4ae2806a5f4c7f
[goodfet]
/
firmware
/
lib
/
arduino.c
1
/*! \file arduino.c
2
\author Travis Goodspeed
3
\brief Arduino platform support.
4
*/
5
6
#include "platform.h"
7
#ifdef ARDUINO
8
9
#include <util/delay.h>
10
11
//! Arduino setup code.
12
void arduino_init(){
13
/* set PORTB for output*/
14
DDRB = 0xFF;
15
16
while (1)
17
{
18
/* set PORTB.6 high */
19
PORTB = 0x20;
20
21
_delay_ms(1000);
22
23
/* set PORTB.6 low */
24
PORTB = 0x00;
25
26
_delay_ms(1000);
27
}
28
}
29
30
#endif