This commit is contained in:
hathach committed 2017-12-14 00:39:58 +07:00
1 parent 2c73449888
commit 7aee2a2c72
2 files changed
+14 -7

No files matched your search

@@ -79,6 +79,9 @@ void setup()
matrix.setBrightness(40);
matrix.setTextColor( matrix.Color(0, 0, 255) ); // Blue for Bluefruit
matrix.print('?'); // print out ?
matrix.show();
// Init Bluefruit
Bluefruit.begin();
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
@@ -147,12 +150,16 @@ void loop()
{
char ch = (char) bleuart.read();
matrix.fillScreen(0);
matrix.setCursor(0, 0);
matrix.print(ch);
matrix.show();
delay(100);
// skip newline
if ( ch != '\r' && ch != '\n' )
{
matrix.fillScreen(0);
matrix.setCursor(0, 0);
matrix.print(ch);
matrix.show();
delay(200);
}
}
}
}
+1 -1
View File
@@ -249,7 +249,7 @@ err_t AdafruitBluefruit::begin(bool prph_enable, bool central_enable)
"Please update linker file or re-config SoftDevice", ram_start, (uint32_t) __data_start__);
}
PRINT_HEX(ram_start);
LOG_LV1("CFG", "SoftDevice's RAM requires: 0x%08X", ram_start);
VERIFY_STATUS(err);
#endif