Low-level access to STM32 peripherals using JavaScript #804
Replies: 3 comments
-
Posted at 2015-09-25 by alexanderbrevig Very nice :) The power of peek and poke. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-09-25 by @allObjects
Why would you call this ...not really useful? - Is there a better way do make a rpm or frequency counter/display? ...using a read/reset the count, setInterval() or setTimeout() of a particular value, read the count, do the math, show the rpms/frequency?
Would that qualify for a component to build a Theremin-like instrument? ...recalling some discussion/post when @gordon asked for PICO applications and then made the game for moving a ring around a crazy bent wire without touching? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-09-25 by @gfwilliams
Well, I was referring to accessing the value of the counter that's just counting up at a fixed rate - obviously it's useful when it's counting an external input - but that's what the
Yes, almost certainly. With a bit of fiddling I'm sure you could get it a bit more sensitive and could use it to control pitch/volume or something... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2015-09-25 by @gfwilliams
I posted a new tutorial up here:
http://www.espruino.com/STM32+Peripherals
It's a bit heavy, but it shows you how you'd go through the process of looking at the chip's reference manual, decoding it and turning it into JavaScript that can set the hardware up in interesting ways.
At the end of the tutorial you end up with:
Beta Was this translation helpful? Give feedback.
All reactions