ArduinoTellstick bug fixes. now the nexa part is working
Former-commit-id: 3e462e990cc25d1b54c38ca729922392aca97c05
This commit is contained in:
parent
41ebf9ac30
commit
efadc097ce
3 changed files with 28 additions and 8 deletions
|
|
@ -14,7 +14,7 @@ inline void setupPins(){
|
|||
|
||||
#if defined(__AVR_ATmega168__) || defined(__AVR_ATmega168P__) || defined(__AVR_ATmega328P__)
|
||||
//pin7 = PD7 = port D, bit 8
|
||||
#define RX_PIN_READ() ( PIND & 0b00000001 ) // optimized "digitalRead(7)"
|
||||
#define RX_PIN_READ() ( digitalRead(7) ) // optimized "digitalRead(7)"
|
||||
//pin8 = PB0 = port B, bit 1
|
||||
#define TX_PIN_LOW() ( PORTB &= 0b01111111 ) // optimized "digitalWrite(8, LOW)"
|
||||
#define TX_PIN_HIGH() ( PORTB |= 0b10000000 ) // optimized "digitalWrite(8, HIGH)"
|
||||
|
|
@ -22,4 +22,4 @@ inline void setupPins(){
|
|||
#unsupported architecture
|
||||
#endif
|
||||
|
||||
#endif //CONFIG_H
|
||||
#endif //CONFIG_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue