-
-
I've been working on a Custom Wearable display called Project GLASSES, currently with an ESP32 devkit for testing, but my plan is to use an mdbt42Q in the end, and make an app system like for BangleJs for it and integrate it with the BangleJs as an input device for it. I'm posting project logs for it on the hackaday.io page
-
-
-
-
-
-
I'm measuring 2.4V between GND and 3.3V when i put my power adapter on 3.3V, and 2.7V when i put it on 5V, and I'm measuring 2.5V between GND and V of the power adapter when the MDBT42Q is disconnected, and 6.7V when it's on 5V with the MDBT42Q disconnected. I have a 9V 1.2A power supply connected to the power adapter.
The lights are also off when powering it up with the button held down. -
-
-
-
-
-
-
-
https://gist.github.com/OmegaRogue/0beda87a1a80dccb3bc4e8d8c84b70cb
here is the log
here is the app loader: https://omegavoid.codes/BangleApps
its hosted using GitHub pages, and recently its been having alot of problems with actually rebuilding everything on deploy, my custom css had alot of problems with having the latest changes after rebuilding -
-
-
-
either way, this is definetly shorter:
function drawCorner(obj, x, y, n) { g.setColor(obj.C.color.primary.base); let s1, s2 = 1; switch (n) { case 0: // Top Left s1 = s2 = -1; break; case 1: // Top Right s2 = -1; break; case 2: // Bottom Left s1 = -1; break; case 3: // Bottom break; } const x1 = x + obj.cornerOffset *s1; const y1 = y + obj.cornerOffset *s2; g.fillRect(x1, y1, x, y - obj.cornerSize*(s1*-1) + obj.cornerOffset*s1); g.fillRect(x1, y1, x - obj.cornerSize*(s2*-1) + obj.cornerOffset*s2, y); } Arwes.prototype.drawFrameNoCorners = function (x1, y1, x2, y2) { g.setColor(this.C.color.primary.dark); g.drawRect(x1, y1, x2, y2); }
-
-
-
I can just do two small fillRects for it, and I can bring them into one function:
function drawCorner(obj, x, y, n) { g.setColor(obj.C.color.primary.base)); let x1; let y1; switch(n) { case 0: // Top Left x1 = x - obj.cornerOffset; y1 = y - obj.cornerOffset; g.fillRect(x1, y1, x, y + obj.cornerSize - obj.cornerOffset); g.fillRect(x1, y1, x + obj.cornerSize - obj.cornerOffset, y); break; case 1: // Top Right x1 = x + obj.cornerOffset; y1 = y - obj.cornerOffset; g.fillRect(x1, y1, x, y + obj.cornerSize - obj.cornerOffset); g.fillRect(x1, y1, x - obj.cornerSize + obj.cornerOffset, y); break; case 2: // Bottom Left x1 = x - obj.cornerOffset; y1 = y + obj.cornerOffset; g.fillRect(x1, y1, x, y - obj.cornerSize + obj.cornerOffset); g.fillRect(x1, y1, x + obj.cornerSize - obj.cornerOffset, y); break; case 3: // Bottom Right x1 = x + obj.cornerOffset; y1 = y + obj.cornerOffset; g.fillRect(x1, y1, x, y - obj.cornerSize + obj.cornerOffset); g.fillRect(x1, y1, x - obj.cornerSize + obj.cornerOffset, y); break; } }
but that seems a bit redundant, because depending on the corner position the operations are different
-
and when it gets released and if I can somehow get access to it, I'll use bosch smartglasses lightdrive, though I don't know if that is going to be available for individuals in small amounts