Espruino on the Pi (with WiringPi) #133
Replies: 31 comments
-
Posted at 2014-12-19 by @gfwilliams I don't think there is anything that would fit in the same form factor. Having said that you can overclock the chips. The f103 in the original board isn't great as afaik if you want USB then 72mhz is mandatory. However the f401 allows different clocks while keeping USB running. If the process tech and core is the same as the F407 then it might be possible to double the clock speed to 168mhz |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-01-09 by @gfwilliams @bob_dvb the software SPI and I2C isn't implemented yet, but it should be very easy to do using the WiringPi library. It's just a matter of 'filling in the blanks' in |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-01-12 by @gfwilliams Have you managed to build the binary? If so, there's Basically you can get a command-line just with |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-01-28 by @gfwilliams Just type |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-01-29 by @gfwilliams Where did you get the binary from? the zip file? If so, try getting the latest version - I released 1v72 yesterday, and that would have had the Ctrl+C, plus a few other improvements. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-02-06 by @gfwilliams Thanks for the report - I've just made a bug for this. The Linux versions of Espruino check for memory leaks on exit, and it looks like that particular syntax error caused a memory leak. It's not much to worry about though - you'll lose a few bytes of memory each syntax error until this is fixed - but then you have several hundred MB to play with :) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-02-06 by @gfwilliams Actually just an update on this - it's not a problem with the interpreter at all. It's just that on exit Espruino was showing all memory that was left allocated. It should have run a garbage collection pass beforehand, so it could be sure that the stuff it was showing was actually a memory leak, and not just stuff that was left hanging around. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-02-10 by @gfwilliams That's fine - there are one or two tests in there that don't pass - to remind me of things that need doing :) test_pipe.js passes on mine, but it's probably just because test.txt doesn't exist, |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-02-23 by @gfwilliams Thanks for the update. If you used |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-06-08 by @gfwilliams Great - glad you got it sorted! Yes, unless you use |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-10-24 by @gfwilliams That's great! Thanks for posting that up! I'd never really considered using the Web IDE with a Pi before, but it makes a lot of sense! A few weeks ago I made it so the Web IDE can connect to a network server. I wonder if you could somehow use that with Espruino on the Pi... Maybe just a telnet server or something? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-10-26 by @gfwilliams That's great - thanks! As you say, horribly insecure, but fun if you're just playing around locally. I guess you might be able to make it persist using |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-10 by @gfwilliams If you recompile Espruino once the wiring-dev libs are installed, the warning about missing wiringpi libs should disappear. If you then run as sudo it should start as normal, but when you access the GPIO it'll do it directly |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-05-22 by @gfwilliams There was a post on it here: http://forum.espruino.com/conversations/278380/?offset=25#comment13427964 And I think some others too. It should well be possible, but I'm not sure it's worth it since you'll spend 90% of your time re-writing networking/graphics/sound/usb/etc libraries. I believe you can get realtime linux kernels for the Pi though, and if you just ran Espruino with one of them you should get something very similar with very little effort :) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-12-18 by @gfwilliams
I'm not sure if anyone has tried it recently, but Espruino has been available for the Pi for years.
Having discovered wiringPi a few weeks ago, I decided to have another play around. It actually makes Espruino on the Pi really interesting.
When run with 'sudo' it has...
setWatch
that uses interruptsSerial1.setup(9600,{....path:"/dev/ttyUSB0"})
)With the newest Raspbian images, installation is pretty simple too. On a clean install, log in and do:
Anyway, the exciting thing is setWatch really. I just plugged a 433Mhz radio receiver straight into one of the GPIOs and I can actually decode 433Mhz signals with it - using the exact same code that was used on the Espruino board.
Given the price of Raspberry Pis now this could make a really interesting all-JavaScript base station. The extra oomph of the Raspberry Pi means it should be a lot more reliable when it comes to decoding radio signals.
Beta Was this translation helpful? Give feedback.
All reactions