use registry for preamble

This commit is contained in:
Nicu Hodos 2023-12-18 21:21:09 +01:00
parent 7c1afa3b87
commit f053e89657
2 changed files with 16 additions and 2 deletions

10
README.md Normal file
View 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

View File

@ -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();
}