-
-
So this is what my module looks like
https://gist.github.com/brendena/154afdffb2355c1cc845b67c6c258dbeI have the exact same displays.
I have it setup to work with color and just black and white. I'm trying to figure out how to do partial display updates. But i can't seem to get it to work. -
-
Basically i have some code that will send a command out and then wait for the busy flag pin pulled high. To link these things together i just have a bunch of promises that chain together. Is that bad practice. As in will it be bad for performance to do something like this.
Example of what i mean
https://gist.github.com/brendena/fddc11a1660eb5d1f03a17466b314e66#file-gistfile1-txt-L97 -
My bad. In my code it is require("eink")
I did try eink.js, but that didn't solve anything. The function require will look for any file that is either .min.js or .js.
I found this that i'm going to try.
https://github.com/espruino/BangleApps/blob/master/modules/README.mdThis section talks about the proper way to test a module.
-
@Gordon, Thanks for the info.
I'm currently working on making a JS module right now. But I'm stuck because it says the module can't be found.
My setup
- installed the IDE from chrome
- local module - located in eink/eink.js
- require(eink)
I'm i suppose to just put the code in the main file? I saw export is not supported.
- installed the IDE from chrome
-
So this page loads the pcd8544 from a javascript version of the library
https://www.espruino.com/Onboard+LCDHere's the code
https://www.espruino.com/modules/PCD8544.jsWith the list of other modules being here.
https://www.espruino.com/modules/ -
I'm trying to add a eink display to the libs/graphics module.
My goals are to
First have this excisable from just a normal to normal microcontrollers.
Second possible port this to the bangleJS library. There's a watch that uses the same exact display i'm working with. https://watchy.sqfmi.com/My first question is how do you use a display without using BangleJS software suit.
I see this example
https://www.espruino.com/Onboard+LCD
I see the lcd_pcd8544.h/c files but i don't understand how they get accessed from the javascript side. There's no binding javascript wrapper comment code? -
-
So in the board python files there's two kinds of pins. There the pin in with the cpu's name like PD15. Then there's the arduino style of naming D13. How do these pythons string match up.
https://github.com/espruino/Espruino/blob/master/boards/NRF52840DK.py
https://os.mbed.com/platforms/Nordic-nRF52840-DK/
So i ask this because i used the image above to the pinout.
But found that this is how it worked in the code.P1.15 = D47 and not D13 as it looked like in the MBed pinout.
-
This is getting the starfield watch on a custom firmware.
https://forum.espruino.com/conversations/390005/#comment17152034If i have tomorrow. I'll try playing around flashing my 52480DK board. If that goes well i'll try working with the pinetime.
-
Here's a post of another person trying the same thing
https://forum.espruino.com/conversations/342466/?offset=25#comment16176898 -
Pin map
https://files.pine64.org/doc/PineTime/PinTime%20Schematic-V1.0-20191020.pdfA project code representative for the map
https://github.com/InfiniTimeOrg/InfiniTime/blob/main/src/drivers/PinMap.h -
This is the G5 custom board.py file
https://github.com/jeffmer/Espruino/blob/master/boards/G5.py -
So this is a port too the G5
https://forum.espruino.com/conversations/373361/#comment16648507Here's also a port of the dongle
https://forum.espruino.com/conversations/323658/?offset=125#comment16453148Also sounds like a simple build for the same processor as the pinetime
https://forum.espruino.com/conversations/372583/#comment16382483 -
@ccchan any luck with the pinetime i was thinking about doing something similiar
-
-
Question one
https://github.com/espruino/Espruino/blob/master/boards/BANGLEJS2.py
So here is the list of configurations for the Bangle 2. I'm just wondering were are the actual drivers for this located at. For example there's this line "'device' : 'CST816S'". So there must be a CST816S c class somewhere right?
Question Two
Where's the code to handle the the Bangle 2 OS watch. The Espruino.js is just a runtime to make javascript work on the embedded device. So i'm guessing there's also a repo for the code for the watch right?
This is a very cool project. Just trying to figure out how it works :)
This is awesome! Thanks so much. I was wondering if you could post the entire thing into a github Gist. For some reason i'm getting some weird results when i try to compile it on my end.
Also i'm excited your working with a watchy as well. What are you trying to do with it.