Merge pull request #61 from jacobeva/ble

Add NRF52 BLE serial support
This commit is contained in:
markqvist 2024-02-10 17:15:02 +01:00 committed by GitHub
commit 5a87095e30
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 220 additions and 545 deletions

View file

@ -54,6 +54,12 @@ void setup() {
Serial.setRxBufferSize(CONFIG_UART_BUFFER_SIZE);
#endif
#if MCU_VARIANT == MCU_NRF52
if (!eeprom_begin()) {
Serial.write("EEPROM initialisation failed.\r\n");
}
#endif
// Seed the PRNG
randomSeed(analogRead(0));
@ -140,7 +146,7 @@ void setup() {
update_display();
#endif
#if MCU_VARIANT == MCU_ESP32
#if MCU_VARIANT == MCU_ESP32 || MCU_VARIANT == MCU_NRF52
#if HAS_PMU == true
pmu_ready = init_pmu();
#endif