-
-
Hey again Gordon, I have the following on the top of my file.
require("FontTeletext10x18Mode7").add(Graphics); require("FontHaxorNarrow7x17").add(Graphics); require("Font8x12").add(Graphics);
Still when I try to run my program on my Bangle.js 1 it returns
Uncaught Error: Module FontTeletext10x18Mode7 not found
.
I have tried using adding it on both the right and left-hand sides of the IDE. The left side gives me the same error.What can I do?
EDIT: I solved it, I was uploading the JS file when I should have run it through the IDE.
-
I decided to update the firmware from v2.10 to v2.13 this evening. When I connected my phone to the watch via nRF Toolbox as usual, I started the update. There was a failure. Every time I hit retry my phone reads '(number e.g. 3072) bytes were sent while 0 bytes were reported as recieved'.
The watch eventually refreshes and reads BANK0 invalid.
I can't reload the watch back to normal, so I keep retrying. The progress bar gradually fills up by a few millimetres every time I hit retry, so I keep going until the update is finished.
I can no longer connect to anything via bluetooth. I have tried a factory reset, I've tried rolling back the firmware (no such luck). I can access the launcher and clock face, but as soon as I try and connect to the web IDE or the app loader from any computer in the house I get a prompt saying "disconnected".I look at the settings console in the web IDE and see
BT> SEND ERROR: NotSupportedError: GATT operation failed for unknown reason. BT> Disconnected (gattserverdisconnected) Disconnect callback... {"port":"Bangle.js 75cd", "portName":"Bangle.js 75cd"} WARNING: [notify_warn] Disconnected from Bangle.js 75cd
These past few weeks I've been working on a programming project for college using both Bangle.js models, the deadline is incoming and I've really hit a wall. The program is working perfectly but I need a working watch to download and present it.
Is there anything I can do? Any help would be most greatly appreciated.
-
-
-
I'm trying to test a JS program on the Bangle.js emulator. When I start emulating, the green bar fills all the way and then stops. The page then becomes unresponsive.
Here (https://ibb.co/cX95vHj) is a screenshot. The image tab didn't work for some reason, so I'm placing it here.How can I fix this?
Edit: IDE shows cascading message "Execution interrupted", if that helps.
-
I compress an object:
schedule = require("heatshrink").compress(JSON.parse(require("Storage").read("CustomSchedule.json")));
Printing the value of schedule returnsnew Uint8Array([0, 2]).buffer
.
I then decompress usingconsole.log(require("heatshrink").decompress(schedule));
and getnew ArrayBuffer(2)
.
How can I convert the ArrayBuffer back to an object? -
The emulator performs some strange variable reassignments to my code when I try to minify it.
When I change these variable definitions fromlet keys;
tovar keys;
and re-run the code, I get low memory errors. This happens for both Bangle.js 1 and 2.
How can I overcome these limitations? Is there a way that I can simulate more memory on the emulator? -
I ran into an issue where I cannot access a method of Number called isInteger..
if (!(Number.isInteger(schedule[letter][day][event]["Duration"]))) throw "Validation failed";
Running the following code returns
Uncaught Error: Function "isInteger" not found!
::console.log(Number.isInteger(1));
How can I install the Number class into my Bangle.js? Is there any way to fix this?
-
-
-
I'm trying to add a a set of fonts to Graphics.
The list is big, so I'm using an array. (Below list is just an example)// DOESN'T WORK ["FontTeletext10x18Mode7", "FontHaxorNarrow7x17", "Font8x12"].forEach((font) => { require(font).add(Graphics); });
I get back an error,
Module FontTeletext10x18Mode7 not found
.
However, adding them individually seems to work.// WORKS require("FontTeletext10x18Mode7").add(Graphics); require("FontHaxorNarrow7x17").add(Graphics); require("Font8x12").add(Graphics);
Why can't I use an array to add fonts?
-
-
Hey again, thanks for helping me so far, you've been brilliant.
Assuming I did get ~10% less supply voltage, how can I fix it? I don't want to always see <94% on the display and I remember from an earlier thread that opening it up to change the resistors in question is not an option, as there are no screws like in my Bangle 1.
What can I do?
-
-
-
I received my Bangle.js 2 last night, assembled the straps and plugged in with the charge cable. It charged up to 94% really fast, but no matter how long I left it charging I couldn’t get it past 94%.
The cable is plugged the right way, as per the instructions card in the box.
On a non-related issue, the screen seems to have a ghosting issue when I change application. I suspect it might just be refresh frequency, but I’m unsure. One of the settings labelled “Beep” reads ‘undefined’. Whenever I select it the whole watch crashes. Is this just a software issue?
Thanks.
-
Hey Robin, thank you for reading!
This is really strange, I tried connecting this afternoon and everything worked perfectly.
You are absolutely right about the Bangle device. It's a Bangle.js 1.0.I also ran the commands you gave me:
>process.env ={ VERSION: "2v09", GIT_COMMIT: "7247a2c4", BOARD: "BANGLEJS", FLASH: 524288, SPIFLASH: 4194304, STORAGE: 4194304, RAM: 65536, SERIAL: "c3f57bae-4b29eb8b", CONSOLE: "Bluetooth", MODULES: "Flash,Storage,hea" ... "tensorflow,locale", EXPTR: 536882372 } >process.memory() ={ free: 782, usage: 1318, total: 2100, history: 30, gc: 0, gctime: 5.06591796875, blocksize: 16, stackEndAddress: 536922336, flash_start: 0, flash_binary_end: 457148, flash_code_start: 1610612736, flash_length: 524288 }
Do you see anything of note, or was this probably random?
(Thanks again!)
-
Today I tried connecting to the web IDE to upload a new JSON file to storage. I clicked the button on the top-left corner and selected my device from the menu. It connects. I click the storage icon, but the loading bar reaches the halfway and promptly disconnects. I try this with other browsers and the same thing happens. I then try connecting to the app loader but it isn't able to connect at all.
This issue persists even after reloading default settings.
Before disconnecting, the dev console gives me the following error message:BT> SEND ERROR: NotSupportedError: GATT operation failed for unknown reason.
How can I fix this?
-
-
Ah, I see. A real shame indeed. My Bangle's settings show both
Beep: Vibrate
andBeep: Piezo
as selectable options. It's set onBeep: Piezo
at the moment. You're also completely right, they both do sound similar and the piezo is slightly louder.
At least it'll still have a motor.
Thanks for the help, Gordon. -
Hey, I learned recently of the upcoming Bangle.js 2.0 and I eagerly checked the specifications that Gordon uploaded to the website. It all looks really impressive, but I noticed no mention of a piezoelectric speaker.
My current Bangle.js 1.0 came with a piezo, and it's been really satisfying to play around with and use in my own applications.
Is there any possibility of a future release of Bangle.js 2.0 units that include a speaker?
-
Hey there Gordon, thanks for the reply. I'm sorry I couldn't respond earlier.
The issue was infinite recursion.
I was making a timetabling and scheduling app for the Bangle.js 1 and 2 (lesson plans, etc.). It was my project for college. The program searches a JSON file for the next event - which it determines by checking the associated timecode against the current time. One of my subroutines was filtering out the events that came before the current time while ignoring the date - so when I check my watch at 11 pm (a time when I never have anything scheduled) it ignores all events in subsequent days that come before 11 - so it kept searching through the calendar forever.
It's all fixed now. The application works very well. You're in the Special Thanks section in my project write-up! Cheers!