projects
/
svn42.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2004822
)
neuer dart scheiben test
author
Othmar Gsenger
<otti@realraum.at>
Wed, 29 Jun 2011 20:50:40 +0000
(20:50 +0000)
committer
Othmar Gsenger
<otti@realraum.at>
Wed, 29 Jun 2011 20:50:40 +0000
(20:50 +0000)
dart/dart.pde
patch
|
blob
|
history
diff --git
a/dart/dart.pde
b/dart/dart.pde
index
03bc643
..
4c05548
100644
(file)
--- a/
dart/dart.pde
+++ b/
dart/dart.pde
@@
-9,9
+9,9
@@
//INPUT PINS analog 0-4 PINC
#define PINC_MASK B00011111
//INPUT PINS analog 0-4 PINC
#define PINC_MASK B00011111
-#define INPUT_SIG_PORTD B11111111
-#define INPUT_SIG_PORTC B11111111
-#define INPUT_SIG_PORTB B11111111
+#define INPUT_SIG_PORTD B11000000
+#define INPUT_SIG_PORTB B00011111
+#define INPUT_SIG_PORTC B00010000
union union16 {
byte uint8[2];
uint16_t uint16;
union union16 {
byte uint8[2];
uint16_t uint16;
@@
-29,7
+29,7
@@
union union32 {
typedef unsigned char byte;
//********************************************************************//
typedef unsigned char byte;
//********************************************************************//
-
+/*
void start_timer()
{
// timer 1: 2 ms
void start_timer()
{
// timer 1: 2 ms
@@
-47,8
+47,10
@@
void stop_timer() // stop the timer
TCCR1B = 0; // no clock source
TIMSK1 = 0; // disable timer interrupt
}
TCCR1B = 0; // no clock source
TIMSK1 = 0; // disable timer interrupt
}
-
+*/
static void PCint(uint8_t port) {
static void PCint(uint8_t port) {
+ Serial.println(port);
+ return;
union32 data;
data.uint32=0;
data.uint8[0]=PIND;
union32 data;
data.uint32=0;
data.uint8[0]=PIND;