Skip to content

Commit 1f7cda5

Browse files
authored
Merge pull request #40 from sensebox/fix/rm-qr
Remove QR Code
2 parents 6e19bd5 + a5add63 commit 1f7cda5

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

senseBox-bike-atrai-v2/src/display/Display.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,17 @@ void SBDisplay::showConnectionScreen()
134134
bleIdBegin.c_str(),
135135
bleIdEnd.c_str()};
136136

137-
drawQrCode(name.c_str(), message);
137+
// drawQrCode(name.c_str(), message);
138138

139+
display.clearDisplay();
140+
display.setTextSize(1);
141+
142+
display.setCursor(4, 22);
143+
display.println("senseBox:bike");
144+
145+
display.setCursor(4, 34);
146+
display.println(bleIdBrackets);
147+
139148
drawBattery(0, 0, 16, 4);
140149
display.display();
141150
}

senseBox-bike-atrai-v2/src/sensors/BatterySensor/BatterySensor.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "BatterySensor.h"
2+
#include <display/Display.h>
23

34
BatterySensor::BatterySensor() : BaseSensor("batterySensorTask", 2048, 10000) {}
45

@@ -15,6 +16,7 @@ void BatterySensor::initSensor()
1516
{
1617
while (!maxlipo.begin())
1718
{
19+
SBDisplay::showLoading("MAX17048 Error", 0);
1820
Serial.println(F("Couldnt find Adafruit MAX17048?\nMake sure a battery is plugged in!"));
1921
delay(2000);
2022
}

0 commit comments

Comments
 (0)