|
@@ -48,8 +48,11 @@ void us_transmit() {
|
|
|
//pull pin 2, 3 and 4 to 5V
|
|
|
//doing this seems to lead to power supply issues and the serial interface stopps working
|
|
|
//further testing needed!
|
|
|
- PORTD |= 0b00011100;
|
|
|
-
|
|
|
+ PORTD = (PORTD & 0b11100011) | 0b00000100;
|
|
|
+ delayMicroseconds(5);
|
|
|
+ PORTD = (PORTD & 0b11100011) | 0b00001000;
|
|
|
+ delayMicroseconds(5);
|
|
|
+ PORTD = (PORTD & 0b11100011) | 0b00010000;
|
|
|
delayMicroseconds(5);
|
|
|
|
|
|
//pull pin 2, 3 and 4 to GND
|