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() {
|
void preamble() {
|
||||||
noInterrupts();
|
noInterrupts();
|
||||||
for (int i = 0; i < 370; i++) {
|
for (int i = 0; i < 370; i++) {
|
||||||
transmitBit(HIGH);
|
// transmitBit(HIGH);
|
||||||
transmitBit(LOW);
|
// transmitBit(LOW);
|
||||||
|
PORTB |= _BV(PORT_BIT); // HIGH
|
||||||
|
_delay_us(BIT_LENGTH);
|
||||||
|
PORTB &= ~_BV(PORT_BIT); // LOW
|
||||||
|
_delay_us(BIT_LENGTH);
|
||||||
}
|
}
|
||||||
interrupts();
|
interrupts();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user