-
hi, is any chance with espruino boards to use pdf simple files and convert them to display at lcd, tft or epaper displays?
i am not thinking about diy ebook reader but about road book reader, like is used for enduro or Dakar styles rallies, there are simple navigation information based on a simple character and signs system,
those road book maps are usally available and also can be created by user,issue is the sun, any tablet or present navigation system are most not epaper made what is
bad for reading during the rally, sometimes is necessary to even stop to read the map,
with epaper it should be much better for visibility of the data on the screendidn't finy any roadbook reader at the market with epaper and possibility to read pdf files
-
-
I've just got my first MDBT42Q to try play with, after all customs and postage process which was an extra effort, during first time i wanted connect it I probably fried it.
I know there is written warning to check polarity, I wanted to connect it via usb/ttl converter as my macbook doesn't support ble. I don't know how I did it, I checked wiring few times and finally connect it wrong.
I know, my mistake, but from my point of view board for 20GBP should have protection against wrong polarity. I remember I made wrong connection with pico, but there is rectifying diode, I changed it and pico is still working.
It's pity I can't play with ble again, MDBT42Q is fried, and Bangle.js I ordered can't connect with any of my 4 computers (they don't support ble, also few dongles USB I have). Unfortunatelly again I have to make step back and come back to arduino for another few projects, my next attempt to switch to espruino failed. -
-
-
-
hi, I'd like to add weather app notification and sms notification at my bangle.js but can't go through the settings/installation process to make it work
I read http://www.espruino.com/Gadgetbridge but don't know after I read that how to connect bangle with the phone
I did install gadgetbridge at my phone (motorola m9 -android), I connected bangle to my phone via bluetooth in gadgetbridge app, also installed gadgetbridge in my bangle, of course weater app is installed on bangle too via web bangle app loader,
but weather app still ask about "Is gadgetbridge connected"?
it is connected, I see that watch is connected into gadgetbridge at my mobilewhat has to be done to make it work?
is any good tutorial for that? btw I don't understand what I have to do with gadgetbridge after this instruction here http://www.espruino.com/Gadgetbridge -
-
i have espruino Original, and with code I placed above it is not working with button installed on board, I can call this button from IDE by BTN and BTN1 (and button works with other examples), but not with the code I placed above
i also try it like this, and still doesn't work
pinMode(B12,"input_pulldown");//i understand B12 is corresponding to BTN or BTN1 on espruino code var SWBtn = require("https://raw.githubusercontent.com/muet/EspruinoDocs/master/modules/SWButton.js"); var mySWBtn = new SWBtn(function(k){ console.log("Btn on B3 detected " + k); // log key press pattern },B12);
-
in reply to @allObjects
sorry but still not clear,
I used your parts of code above and still have some errorsdo I need some setWatch to make it run?
is this example below enough to run or there is missing part?
in my case this code doesn't detect any buttonvar SWBtn = require("https://raw.githubusercontent.com/muet/EspruinoDocs/master/modules/SWButton.js"); var mySWBtn = new SWBtn(function(k){ console.log("BTN1 detected " + k); // log key press pattern if (k === "L" ) { LED1.set(); } else if (k === "LS" ) { LED1.reset(); } else if (k === "LL" ) { LED2.set(); } else if (k === "LLS") { LED2.reset(); } });
-
var SWBtn = require("https://raw.githubusercontent.com/muet/EspruinoDocs/master/modules/SWButton.js"); var mySWBtn = new SWBtn(function(k){ console.log("BTN1 detected " + k); // log key press pattern if (k === "L" ) { LED1.set(); } else if (k === "LS" ) { LED1.reset(); } else if (k === "LL" ) { LED2.set(); } else if (k === "LLS") { LED2.reset(); } });
could anyone explain how to change default button pin?
-
-
First I convert my file in Audacity 3.0.2. from mp3 to 16-bit PCM. Then make it mono, next decrease the rate down to 4000Hz, after that i export it and choose "Other Uncompressed files" then Choose "RAW (header-less)" and "Unsigned 8 bit PCM".
https://drive.google.com/file/d/1aRwviRZEjG6knpzrJkVbDOXAP0abKiZw/view?usp=sharing
https://drive.google.com/file/d/1aNGuXnGg5EVnTYrk8ywcDBUFvIZ2gBli/view?usp=sharingAfter that I use this converter
https://www.espruino.com/File+Converter
and choose .raw file I've just created. In converter select window I choose base64, then I save code
converted there to TF card.
https://drive.google.com/file/d/1ekp6Or4iBGBYjUQfUsEeYlxw1mUJGt2U/view?usp=sharingNext use this code
var f = E.openFile("Horse-Angry.raw","r"); var w = new Waveform(2048, {doubleBuffer:true}); // load first bits of sound file w.buffer.set(f.read(w.buffer.length)); w.buffer2.set(f.read(w.buffer.length)); var fileBuf = f.read(w.buffer.length); // when one buffer finishes playing, load the next one w.on("buffer", function(buf) { buf.set(fileBuf); fileBuf = f.read(buf.length); if (fileBuf===undefined) w.stop(); // end of file }); // start output analogWrite(A0, 0.5, {freq:40000}); w.startOutput(A0,11025,{repeat:true});
to play it.
-
I have some mp3 samples from internet. I use audacity to decrease rate to 4000Hz but without success, any file I convert by audacity to raw file doesn't work from TF card. There is only some noice. When I use code for short files to run without TF card it is working only with Gordon's code from the web, but not when I convert my files by converter provided here https://www.espruino.com/File+Converter
-
-
-
-
how is possible to stop that file after playing? I noticed that after playing a sample espruino has some clicking/biping (noice)
in my project I need to play some animal sounds samples after button pressed,
when samples are selected by the corresponding button, they should only be played onceis 4000Hz max quality I can get by espruino?
-
-
-
I'd like to make bluetooth buttons to make changes in Android or IOS apps, in my case it would be Roadbook Navigator or Easy Rally. I'd like to use it to shift roadbook map there up and down, and also to adjust Odometer value and reset last waypoint value. There is some arduino based device at the market to work with that, I wonder if is possible to make it by my own with Espruino?
I was thinking to use my Espruino Original with HC-05 module soldered into it, but not sure if that would be ok for that project. MDBT42Q Breakout would be better? Or Espruino Original would be enough?
I tested my simple bluetooth button I purchased on aliexpress to work with IOS and Android camera on the mobiles. In my case when I use it with Roadbook Navigator it changes odometer value up, increasing by 1. So some connection is possible. I need 5 commands to be send to mobile app via bluetooth, up and down for odometer, shift up and down for the map and reset for last waypoint.
Any chance to do it?
-
-
Hi i have some problems to connect to my Oryginal green board with soldered there HC-05 bluetooth module. There is no problem to connect via usb, I can also write new firmware into it, but my mac can't connect into it. Or if shows that is connected then there is also information in Web IDE "no response from the board". Don't know whats wrong with that, before I did use it for some tests with no problems.
I appreciate some advice how to bring back this connection via bluetooth.
I appreciate any advice how to connect my Bangle.js (1st version) over bluetooth in some reliable way.
I use it with macbook pro a1278, also I have ZEXMTE usb bluetooth dongle to work with it. I did checked another 3 dongles but without success.
My macbook onboard bluetooth can connect with this watch let say one per 100times.
When I use ZEXMTE dongle I can get connection every 20-30 times, also it not keeping it for long,
after while it disconnect it.
I use espruino Web IDE as described here https://www.espruino.com/Troubleshooting+Bangle.js .
Any advice how to make this connection work?