Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: N5110.h
- Revision:
- 45:97e54ea40dac
- Parent:
- 44:57f9d32fb521
- Child:
- 46:6de3ebf5b195
--- a/N5110.h Wed Nov 01 20:48:05 2017 +0000
+++ b/N5110.h Mon Nov 06 11:48:22 2017 +0000
@@ -42,6 +42,10 @@
{
// first need to initialise display
lcd.init();
+
+ // change set contrast in range 0.0 to 1.0
+ // 0.4 appears to be a good starting point
+ lcd.setContrast(0.4);
while(1) {
@@ -84,14 +88,6 @@
lcd.refresh();
wait(5.0);
- for(int i = 0; i < 3; i++) {
- for(int j = 0; j < 5; j++) {
- printf("%d,%d = %d\n",i,j,glyph[i][j]);
- }
- }
-
-
-
// can check status of pixel using getPixel(x,y);
lcd.clear(); // clear buffer
lcd.setPixel(2,2); // set random pixel in buffer