Some hints when starting with the Web IDE Emulator for Bangle.js #1435
Replies: 16 comments
-
Posted at 2019-11-30 by @gfwilliams You can also add |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-11-30 by @MaBecker
Attachments: |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-11-30 by Robin Sat 2019.11.30 Yes agreed @MaBecker and so thoughtful this thread. Help topic for 'gist' reference Bullet Three from post #1
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-11-30 by @allObjects For LEDs in the context of bangle.js, see the How to define and use Software LEDs @ this sequence of posts. All kinds of blinking LEDs...Attachments: |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-12-03 by Andreas_Rozek Thank you very much for pointing that out! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-12-03 by Andreas_Rozek Thank you very much for implementing that feature! Its awesome! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-12-03 by @MaBecker Check the new feature in the Bangle.js loader and try some apps in the emulator by click the glyph showed in the attached screenshot Attachments: |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-02-04 by johanbove Thanks for these references. Was wondering however where the "Blue" led was? :-) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-02-04 by @gfwilliams Since @allObjects post the 'fake' LEDs have now been built into the firmware. There isn't a LED3 though. Basically all the Espruino boards that I sell have at least 2 LEDs, but not all have 3. It means that in example code I tend to only use the first 2 LEDs so I can be sure it works on every device. Since this is a bit of a hack to make example code work, I only implemented LED1 and LED2 - adding a 3rd one just seemed a bit pointless :) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-02-04 by @yerpj I am in love with this "Try in Emulator" button!!! I look forward to emulate the Beer app as well ;-) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-24 by DerGuteWolf How do I use the Languages/Locale app when developing another app, eg a clock, in the emulator? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-24 by @gfwilliams At the moment you can't use any locale in the emulator other than the built-in one, which is en_GB. Adding a full tutorial and docs on this is on my list of things to do, but if you look at https://github.com/espruino/Espruino/blob/master/libs/js/banglejs/locale.js you'll see what functions are available to you. So if you do |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-24 by DerGuteWolf Hi Gordon, thanks for the quick feedback. Got this working now: For others: To get it to work in the emulator, instead of
The only thing I am still fighting with is the currency symbol, I am not getting this displayed... Regards, |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-25 by @gfwilliams Thats odd - looks like I think Also it'll only work on the 6x8 font, not the 4x6 (as that doesn't include non-ASCII char codes ... but if you have problems about locale stuff, please could you start a new thread? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-25 by DerGuteWolf Well, this was taken straight from the repo, cf.https://github.com/espruino/BangleApps/blob/master/apps/locale/locales.js#L41 and https://github.com/espruino/BangleApps/blob/master/apps/locale/locale.html#L67 ... |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-25 by @gfwilliams Thanks - I have just fixed that bug in https://github.com/espruino/BangleApps/blob/master/apps/locale/locale.html - I'll push it live tomorrow ... but yes, it could well be a font issue - sadly there's just not enough memory to have 3 full fonts built in |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-11-30 by @MaBecker
What a smart move to come up with a Emulator to bridge the time until shipping of Bangle.js starts.
blink code
with your own code.?gist:<your gist number>&upload
to load your code, try Welcome.Please start growing this post with hints you like to share about the Emulator.
Beta Was this translation helpful? Give feedback.
All reactions