use registry for preamble
This commit is contained in:
parent
7c1afa3b87
commit
f053e89657
10
README.md
Normal file
10
README.md
Normal file
@ -0,0 +1,10 @@
|
||||
# Gateway & sensors
|
||||
|
||||
## Branches
|
||||
Each sensor has a dedicated branch. E.g.:
|
||||
* temp_sensor
|
||||
* oil_sensor
|
||||
|
||||
The gateway uses `master` as the main branch. Other sensors' branches get merged once they are ready for production.
|
||||
|
||||
## Release flow
|
||||
@ -60,8 +60,12 @@ private:
|
||||
void preamble() {
|
||||
noInterrupts();
|
||||
for (int i = 0; i < 370; i++) {
|
||||
transmitBit(HIGH);
|
||||
transmitBit(LOW);
|
||||
// transmitBit(HIGH);
|
||||
// transmitBit(LOW);
|
||||
PORTB |= _BV(PORT_BIT); // HIGH
|
||||
_delay_us(BIT_LENGTH);
|
||||
PORTB &= ~_BV(PORT_BIT); // LOW
|
||||
_delay_us(BIT_LENGTH);
|
||||
}
|
||||
interrupts();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user