dave_irvine
Member since Apr 2017 • Last active Feb 2019Most recent activity
-
Looking forward to this. I used to have plans to digitise SCX cars in some way but I always talked myself out of it saying that I might as well just do it as a computer game rather than interacting with the real world.
You could do awesome things like simulating engine wear which causes the cars to drive slower, track the cars as they move around the track and do lap counting this way. If you're putting the Pixl on board the car then you could display what place in the race the cars are on the roof.
-
-
Still looking for some more optimisations here as I'm running out of memory.
@Gordon the docs for https://www.espruino.com/Reference#t_heatshrink say it doesn't support streaming, but I know that the C implementation does. Is this something you could look at changing?
-
I went with https://www.npmjs.com/package/heatshrink-ts just had to configure it with the
WINDOW_BITS, LOOKAHEAD_BITS, INPUT_BUFFER_LENGTH
parameters that you found for me.
-
-
@Gordon its just using heatshrink. More savings to be made if we sent just the changes as well but we'd need two packet types then, one for the initial "full" send, and then another for just updates.
@urish I will work on a pull request, the code is very bad at the moment. I need to send 1 frame of all 0x00 bytes before the real frames, then 1 frame of 0xFF bytes so that we can identify the "real" frames and make sure they are in order (sometimes they out OOO even though BLE should order them). I'm sure there are many improvements to be made.
-
Hi @Gordon,
What's the best way (given your experience) of working out which other STM chips Espruino is relatively simple to port to? Given that WiFi works on an STM I'm assuming there is compatibility across "some" of their chips...
Currently looking at https://www.mouser.co.uk/datasheet/2/389/stm32f479ai-956241.pdf as a bit of blue-sky thinking, mostly to get access to a MIPI-DSI Host.
Cheers,