Skip to content

Commit

Permalink
Fixed color change on BT input. yay.
Browse files Browse the repository at this point in the history
  • Loading branch information
sboger committed Apr 9, 2019
1 parent c9063a5 commit ac23cab
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions M5-BT-TFT_Terminal.ino
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ void loop(void) {
M5.Lcd.sleep();
}

colorRotator();

while (SerialBT.available()) {

M5.Lcd.setBrightness(LcdBrightness);
M5.Lcd.wakeup();
colorRotator();

data = SerialBT.read();

Expand All @@ -118,12 +118,9 @@ void loop(void) {
if (data > 31 && data < 128) {
xPos += M5.Lcd.drawChar(data,xPos,yDraw,2);
blank[(18+(yStart-TOP_FIXED_AREA)/TEXT_HEIGHT)%19]=xPos; // Keep a record of line lengths
}

changeTripped=1;

}
}
changeTripped = 1;
if (sleepMode) {
if (millis() - timeSinceLastUpdate > (1000L*SECS_TO_SLEEP)) {
M5.Lcd.setBrightness(0);
Expand Down

0 comments on commit ac23cab

Please sign in to comment.