-
-
I managed to get the MAX3421E chip working with the Pixl.js last year and have it talk to a device with a CP2102 chip. When I came across this thread today I was finally motivated enough to write it up and post the source code. Hope it helps!
-
I managed to get the USB host shield working in July 2018 and then completely forgot about it for a year. Oops! I just did a write-up (with source code) on Hackster.io: https://www.hackster.io/gerrit-niezen/adding-usb-host-support-to-espruino-2c494d
-
It is a really tight fit in terms of assembly - I had to use a flat screwdriver to lift the corners in order to get them to close. Would one clip per corner instead of two maybe be sufficient?
I actually had to print the top part a second time, as it delaminated from the print bed at the corner where the logo is. This is mostly my own fault, as the first layer height wasn't calibrated correctly, but on the second print (with correct first layer height) it still lifted up from the bed a little bit. Maybe this could be resolved by moving the logo to the left by a small amount?
-
Printed it last night on a Prusa i3 MK3 @ 0.15mm with PLA.
Thanks @Jean-Philippe_Rey, it looks good! I would love to see an OpenSCAD version too..
-
I have a bunch of different diabetes devices, from blood glucose meters to insulin pumps, that I want to connect so I can display the data on the Pixl.js screen. I see there are libraries for the various USB chips in these devices (e.g. Prolific, FTDI etc.) that were written for that shield, so I'm looking at porting those drivers. I already have JS code to read and parse data from the devices, but not from raw USB.
Maybe the HID USB driver would be a good start, as some meters use that to send data, and it can be used for keyboards too ;)
-
I would love to have a USB host shield supported. The official Arduino USB host shield uses the ICSP header, so that won't work, but the Sparkfun one looks like it might work?
I noticed there was an earlier attempt at making a shim for the Pico, but it hasn't seen any activity in over 2 years. Now that the Pixl.js supports Arduino shields (and there's a shield adapter shim for the Pico), the main work is in porting all the libraries over, right?
-
@Wilberforce I noticed in the GitHub issue that Gordon linked to above that there are a few Babel examples. Yes, I think that will work just fine for now, thanks!
-
-
Any chance that Espruino will supports ES6's async/await syntax in future?
I've found that it is easier to use and much more readable than using Promises with .then, or callbacks for that matter. It is very much suited to the asynchronous nature of connected devices, where you typically send a command and then wait for reply.
Would this BLE adaptor allow me to connect to a Pixl.js over a longer range, or would the device on the other end also need a proper antenna? I'm guessing the latter, but just wanted to double-check.