Created
January 13, 2020 10:01
-
-
Save rozek/f457b4b5f61e3a6289b003e52a3b7712 to your computer and use it in GitHub Desktop.
Bangle.js: draws some graphics for a "HelWrld" icon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bangle.setLCDMode('80x80'); | |
g.clear(); | |
g.setFont('6x8'); | |
g.setColor('#BFFF00'); | |
/**** draw lines which help cropping the screen shot ****/ | |
g.drawLine(0,48,80,48); | |
g.drawLine(48,0,48,80); | |
/**** draw actual icon contents ****/ | |
g.drawString('Hello,', 8,14); | |
g.drawString('World!', 8,26); | |
g.flip(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment