-
-
Well,
it WAS 60 when I first tried it (that's why I was able to print a complete ASCII table on the display) but, it seems as if the default font would have changed recently.
@Gordon: did you change default settings when updating the emulator? How can I explicitly set the font I used yesterday?
[EDIT] I meanwhile found out, that calling
g.setFontBitmap();
will change everything back for my test (Gists have been updated accordingly). Normally, switching to the larger font might be a good idea - as long as developers know that they could display more text, if necessary.
-
-
Hello,
in this conversation we learned how to start an emulator, load some code from a gist or a URL and run it just with a single click - awesome!
Will this feature also be available when the IDE is connected to a real device?
That would be over-awesome! (did I just invent a new english word?)
-
-
Since I had some trouble with color encoding on Bangle.js (see this conversation), I thought it might be a good idea to post two colorful experiments:
- ColorStripe (Gist, run in emulator) fills the display with a "rainbow stripe"
- ColorDisc (Gist, run in emulator) fills the display with a color disc - but be warned: it takes a while for this program to finish although it should be worth waiting...)
Enjoy!
- ColorStripe (Gist, run in emulator) fills the display with a "rainbow stripe"
-
-
-
Indeed,
my mind was simply too "embedded"...the following works as expected:
Bangle.setLCDMode(); // use normal display mode g.clear(); const Width = g.getWidth(); const Height = g.getHeight(); for (let x = 0; x < Width; x++) { let Color = x/Width; g.setColor(Color,0,0); g.drawLine(x,0, x,Height-1); }
Thank you very much for your help!
-
-
What am I doing wrong here?
Bangle.setLCDMode(); // use normal display mode g.clear(); const Width = g.getWidth(); const Height = g.getHeight(); for (let x = 0; x < Width; x++) { g.setColor(x,0,0); g.drawLine(x,0, x,Height-1); }
In the emulator, the screen is filled with a constant red color - and not the gradient I would expect.
So where is the mistake?
Thanks in advance for any help!
Kind regards,
Andreas Rozek
-
-
-
-
-
Are you interested in the available character glyphs on Bangle.js (in the range 0...255)?
Here is a Gist which you may also immediately run in the emulator
Answer: it seems that only 7-bit ASCII glyphs are available (no Latin-1, for example)
-
Hello again,
since "Terminal" does not seem to work on the emulator, I'm currently experimenting with text output using the graphics object itself.
This is why I wondered how many characters one could show per line using the default font (see this Gist, which you may also immediately load into the emulator and run).
The answer is: you can show 60 characters per line!
This means just 4 pixels per character (including spacing!)
I do not know how it will look on a real device, but it seems still readable on my desktop (ok, I have to admit, it uses a retina display...)
-
Hello!
Whenever I try to use Terminal functions in the emulator, I get
Uncaught ReferenceError: "Terminal" is not defined
Are there plans to implement "Terminal" in the emulator?
Thanks in advance for your effort!
Kind regards,
Andreas Rozek
This. is. AWESOME!
Please, keep us informed about your progress with Gadgetbridge - implementing it for Bangle.js is an absolute killer feature and definitely raises Bangle.js to the level of far more expensive smart watches!
Is there already an API one could start investigating?
Thanks in advance for your effort!
Kind regards,
Andreas Rozek