projects
/
goodfet
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Arduino port is blinking.
[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
8
#include <util/delay.h>
9
10
#ifdef ARDUINO
11
12
//! Arduino setup code.
13
void arduino_init(){
14
/* set PORTB for output*/
15
DDRB = 0xFF;
16
17
while (1)
18
{
19
/* set PORTB.6 high */
20
PORTB = 0x20;
21
22
_delay_ms(1000);
23
24
/* set PORTB.6 low */
25
PORTB = 0x00;
26
27
_delay_ms(1000);
28
}
29
}
30
31
#endif